From 8df96e47180b5558e9b93f18710a558708e50bd4 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 28 Apr 2025 17:42:01 -0400 Subject: [PATCH] Fix regression in parsing of AG's `[domain=...]` syntax Related feedback: https://github.com/uBlockOrigin/uBlock-issues/issues/3235#issuecomment-2836674712 Related commit: https://github.com/gorhill/uBlock/commit/8b696a691a0871da8200d1806300842d988a4326#diff-848f3a5c8459fe07d1c65764e30b7c9471be77f9e9574674442319b831138024 --- src/js/static-filtering-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index a3f6e1cc5..53f642c22 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -2225,7 +2225,7 @@ export class AstFilterParser { normalizeDomainRegexValue(before) { const regex = before.startsWith('[$domain=/') - ? `/${before.slice(9, -1)}/` + ? `${before.slice(9, -1)}` : before; const source = this.normalizeRegexPattern(regex); if ( source === '' ) { return ''; }