Make ESLint Happy
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy (3.114.12) (push) Has been cancelled

This commit is contained in:
SukkaW
2026-06-30 16:07:44 +08:00
parent d472b9f79a
commit f1054035f7
14 changed files with 30 additions and 31 deletions

View File

@@ -92,11 +92,11 @@ export async function parseGfwList() {
gfwListTrie.add('.' + line.slice(2));
continue;
}
if (line.startsWith('|')) {
if (line[0] === '|') {
gfwListTrie.add(line.slice(1));
continue;
}
if (line.startsWith('.')) {
if (line[0] === '.') {
gfwListTrie.add(line);
continue;
}
@@ -104,7 +104,6 @@ export async function parseGfwList() {
if (d) {
totalGfwSize++;
gfwListTrie.add(d);
continue;
}
}
for await (const l of await fetchRemoteTextByLine('https://raw.githubusercontent.com/Loyalsoldier/cn-blocked-domain/release/domains.txt', true)) {