Fix AdGuardHome keyword regex
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.9) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW
2025-06-21 01:17:50 +08:00
parent 7f9f34974c
commit 8b179d2454
3 changed files with 157 additions and 157 deletions

View File

@@ -48,7 +48,7 @@ export class AdGuardHome extends BaseWriteStrategy {
writeDomainKeywords(keywords: Set<string>): void {
for (const keyword of keywords) {
// Use regex to match keyword
this.result.push(`/${escapeStringRegexp(keyword)}/`);
this.result.push(`/${escapeStringRegexp(keyword, false)}/`);
}
}