mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Feat: ability to handle inline comment
This commit is contained in:
@@ -50,8 +50,10 @@ async function dedupeFile(file: string, whitelist: HostnameSmolTrie) {
|
||||
|
||||
const trie = new HostnameTrie();
|
||||
|
||||
let line: string | null = '';
|
||||
|
||||
for await (const l of readFileByLine(file)) {
|
||||
const line = processLine(l);
|
||||
line = processLine(l);
|
||||
|
||||
if (!line) {
|
||||
if (l.startsWith('# $ skip_dedupe_src')) {
|
||||
|
||||
Reference in New Issue
Block a user