1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

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

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, '\\$&')