mirror of https://github.com/gorhill/uBlock.git
Support cases with more than one wildcard
Related commit:
- fe0b7a0e0f
Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/572#issuecomment-492147440
This commit is contained in:
parent
255a89910a
commit
8a312b9bbb
|
@ -315,7 +315,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {
|
|||
|
||||
const pattern =
|
||||
des
|
||||
.replace(/\*/, '[\\w.%-]*')
|
||||
.replace(/\*/g, '[\\w.%-]*')
|
||||
.replace(/\./g, '\\.') +
|
||||
matches[2]
|
||||
.replace(/[.+?{}()|[\]\/\\]/g, '\\$&')
|
||||
|
|
Loading…
Reference in New Issue