mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Fix AdGuardHome format
This commit is contained in:
@@ -103,7 +103,7 @@ export class DomainsetOutput extends RuleOutput<Preprocessed> {
|
|||||||
for (let i = 0, len = whitelistArray.length; i < len; i++) {
|
for (let i = 0, len = whitelistArray.length; i < len; i++) {
|
||||||
const domain = whitelistArray[i];
|
const domain = whitelistArray[i];
|
||||||
if (domain[0] === '.') {
|
if (domain[0] === '.') {
|
||||||
results.push(`@@||${domain.slice(1)}&`);
|
results.push(`@@||${domain.slice(1)}^`);
|
||||||
} else {
|
} else {
|
||||||
results.push(`@@|${domain}^`);
|
results.push(`@@|${domain}^`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user