Skip to content

Commit 3dddf4c

Browse files
committed
Fix compiling of negated regex-based to= domain
Related feedback: - uBlockOrigin/uBlock-issues#2234 (comment)
1 parent 899c399 commit 3dddf4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/js/static-net-filtering.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ const compileDomainOpt = (ctors, iterable, prepend, units) => {
15001500
if ( len <= beg ) { continue; }
15011501
if ( s.charCodeAt(beg) === 0x2F /* / */ ) {
15021502
if ( beg === 0 ) { regexHits.push(s); continue; }
1503-
regexMisses.push(s); continue;
1503+
regexMisses.push(s.slice(1)); continue;
15041504
}
15051505
if ( s.endsWith('.*') === false ) {
15061506
if ( beg === 0 ) { hostnameHits.push(s); continue; }

0 commit comments

Comments
 (0)