[trie] variable renamed

This commit is contained in:
Revone 2023-10-18 17:31:01 +08:00
parent 9cf303edd4
commit fb52440469

View file

@ -92,11 +92,11 @@ export class Trie {
return cur.isEnd;
}
private _caseProcess(input: string) {
private _caseProcess(str: string) {
if (!this._caseSensitive) {
input = input.toLowerCase(); // Convert input to lowercase if case insensitive
str = str.toLowerCase(); // Convert str to lowercase if case-insensitive
}
return input;
return str;
}
remove(word: string) {