mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Fix compiling of negated regex-based to=
domain
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/discussions/2234#discussioncomment-5655665
This commit is contained in:
parent
899c39903b
commit
3dddf4ca47
@ -1500,7 +1500,7 @@ const compileDomainOpt = (ctors, iterable, prepend, units) => {
|
||||
if ( len <= beg ) { continue; }
|
||||
if ( s.charCodeAt(beg) === 0x2F /* / */ ) {
|
||||
if ( beg === 0 ) { regexHits.push(s); continue; }
|
||||
regexMisses.push(s); continue;
|
||||
regexMisses.push(s.slice(1)); continue;
|
||||
}
|
||||
if ( s.endsWith('.*') === false ) {
|
||||
if ( beg === 0 ) { hostnameHits.push(s); continue; }
|
||||
|
Loading…
Reference in New Issue
Block a user