mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Minor changes here and there
This commit is contained in:
@@ -211,11 +211,11 @@ export const createTrie = (from?: string[] | Set<string> | null) => {
|
||||
for (let i = suffix.length - 1; i >= 0; i--) {
|
||||
const token = suffix[i];
|
||||
|
||||
if (node.has(token)) {
|
||||
node = node.get(token)!;
|
||||
} else {
|
||||
if (!node.has(token)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
node = node.get(token)!;
|
||||
}
|
||||
|
||||
return node[SENTINEL];
|
||||
|
||||
Reference in New Issue
Block a user