mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Avoid string template literal
This commit is contained in:
@@ -82,9 +82,9 @@ export const buildRejectDomainSet = task(import.meta.main, import.meta.path)(asy
|
||||
const [type, value] = line.split(',');
|
||||
|
||||
if (type === 'DOMAIN-KEYWORD') {
|
||||
domainKeywordsSet.add(value.trim());
|
||||
domainKeywordsSet.add(value);
|
||||
} else if (type === 'DOMAIN-SUFFIX') {
|
||||
domainSets.add(`.${value.trim()}`); // Add to domainSets for later deduplication
|
||||
domainSets.add('.' + value); // Add to domainSets for later deduplication
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user