mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix regex in regex substitution rules
Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/594
This commit is contained in:
parent
d44a1ddf2a
commit
f36dd3461b
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ const rePatternFromUrlFilter = s => {
|
|||
let reStr = s.replace(rePatternFromUrlFilter.rePlainChars, '\\$&')
|
||||
.replace(rePatternFromUrlFilter.reSeparators, restrSeparator)
|
||||
.replace(rePatternFromUrlFilter.reDanglingAsterisks, '')
|
||||
.replace(rePatternFromUrlFilter.reAsterisks, '\\S*?');
|
||||
.replace(rePatternFromUrlFilter.reAsterisks, '.*?');
|
||||
if ( anchor & 0b100 ) {
|
||||
reStr = (
|
||||
reStr.startsWith('\\.') ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue