Skip to content

Commit

Permalink
mix fix JS
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 8, 2024
1 parent 3175839 commit 4531993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/search-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ function docTokenFunction (token) {
}

toSplitWords = parts[parts.length - 1]
} else if (toSplitWords.startsWith("@")) {
} else if (toSplitWords.startsWith('@')) {
// If we have a module attribute, such as @foo_bar,
// also make it searchable as foo_bar
toSplitWords = toSplitWords.substring(1);
toSplitWords = toSplitWords.substring(1)
tokens.push(token.clone().update(() => toSplitWords))
}

Expand Down

0 comments on commit 4531993

Please sign in to comment.