mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Fix AdGuardHome syntax
This commit is contained in:
parent
e347587e6c
commit
42df2df44f
@ -103,18 +103,18 @@ export class DomainsetOutput extends RuleOutput<Preprocessed> {
|
||||
for (let i = 0, len = whitelistArray.length; i < len; i++) {
|
||||
const domain = whitelistArray[i];
|
||||
if (domain[0] === '.') {
|
||||
results.push(`@@||${domain.slice(1)}`);
|
||||
results.push(`@@||${domain.slice(1)}&`);
|
||||
} else {
|
||||
results.push(`@@|${domain}`);
|
||||
results.push(`@@|${domain}^`);
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0, len = this.$preprocessed.length; i < len; i++) {
|
||||
const domain = this.$preprocessed[i];
|
||||
if (domain[0] === '.') {
|
||||
results.push(`||${domain.slice(1)}`);
|
||||
results.push(`||${domain.slice(1)}^`);
|
||||
} else {
|
||||
results.push(`|${domain}`);
|
||||
results.push(`|${domain}^`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user