Skip to content

Commit

Permalink
fix: nightly variable placeholder (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicecui committed Sep 6, 2024
1 parent de6529b commit 4db27ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/variable-placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface VariablesMap {

function getVariables(path: string, variablesMap: VariablesMap): Variables | undefined {
// Check for paths that should be associated with "nightly"
if (path.includes('/docs/docs/') || path.includes('/current/')) {
if (path.includes('/docs/') || path.includes('/current/')) {
return variablesMap['nightly'];
}

Expand Down

0 comments on commit 4db27ab

Please sign in to comment.