mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Rollup merge of #98230 - GuillaumeGomez:weird-js-condition, r=notriddle
Fix weird js condition While going around the code, I found this weird condition. Fixing also affects the generated results in some cases apparently (could only find this one). Any idea maybe `@notriddle?` r? `@notriddle`
This commit is contained in:
commit
267fe3bf81
@ -1333,10 +1333,7 @@ function initSearch(rawSearchIndex) {
|
||||
if (searchWord.indexOf(elem.pathLast) > -1 ||
|
||||
row.normalizedName.indexOf(elem.pathLast) > -1
|
||||
) {
|
||||
// filter type: ... queries
|
||||
if (!results_others[fullId] !== undefined) {
|
||||
index = row.normalizedName.indexOf(elem.pathLast);
|
||||
}
|
||||
index = row.normalizedName.indexOf(elem.pathLast);
|
||||
}
|
||||
lev = levenshtein(searchWord, elem.pathLast);
|
||||
if (lev > 0 && elem.pathLast.length > 2 && searchWord.indexOf(elem.pathLast) > -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user