We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6351ebb commit 97c18f4Copy full SHA for 97c18f4
src/librustdoc/html/static/main.js
@@ -926,8 +926,12 @@
926
}
927
928
lev += lev_add;
929
- if (searchWords[j].startsWith(val)) {
930
- lev -= 1;
+ if (lev > 0 && val.length > 3 && searchWords[j].startsWith(val)) {
+ if (val.length < 6) {
931
+ lev -= 1;
932
+ } else {
933
+ lev = 0;
934
+ }
935
936
if (in_args <= MAX_LEV_DISTANCE) {
937
if (results_in_args[fullId] === undefined) {
0 commit comments