Feat: ability to handle inline comment

This commit is contained in:
SukkaW
2025-08-17 17:35:02 +08:00
parent fe7278c7fa
commit 373f862c6d
7 changed files with 22 additions and 10 deletions

View File

@@ -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')) {