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:
Raymond Hill 2019-05-14 06:52:13 -04:00
parent 255a89910a
commit 8a312b9bbb
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {
const pattern =
des
.replace(/\*/, '[\\w.%-]*')
.replace(/\*/g, '[\\w.%-]*')
.replace(/\./g, '\\.') +
matches[2]
.replace(/[.+?{}()|[\]\/\\]/g, '\\$&')