Fix case of suggestion blacklist.
It should be all lowercase since candidates have been lowercased by the point the blacklist is checked.
This commit is contained in:
parent
5a7e967628
commit
0c10098c66
1 changed files with 5 additions and 5 deletions
|
@ -14227,14 +14227,14 @@ namespace ts {
|
|||
if (candidateName.length < 3 ||
|
||||
name.length < 3 ||
|
||||
candidateName === "eval" ||
|
||||
candidateName === "Intl" ||
|
||||
candidateName === "intl" ||
|
||||
candidateName === "undefined" ||
|
||||
candidateName === "Map" ||
|
||||
candidateName === "NaN" ||
|
||||
candidateName === "Set") {
|
||||
candidateName === "map" ||
|
||||
candidateName === "nan" ||
|
||||
candidateName === "set") {
|
||||
continue;
|
||||
}
|
||||
const distance = levenshtein(candidateName, name);
|
||||
const distance = levenshtein(name, candidateName);
|
||||
if (distance > worstDistance) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue