Fix regression in parsing of AG's [domain=...] syntax

Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/3235#issuecomment-2836674712

Related commit:
8b696a691a (diff-848f3a5c8459fe07d1c65764e30b7c9471be77f9e9574674442319b831138024)
This commit is contained in:
Raymond Hill 2025-04-28 17:42:01 -04:00
parent 526af62864
commit 8df96e4718
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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 ''; }