mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-23 12:54:04 +00:00
[trie] variable renamed
This commit is contained in:
parent
9cf303edd4
commit
fb52440469
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue