mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix placeholder references for regexSubstitution
This commit is contained in:
parent
cb62e38f50
commit
052c36aada
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ export function parseNetworkFilter(parser) {
|
|||
if ( parsed.re ) { return; }
|
||||
rule.action.type = 'redirect';
|
||||
rule.action.redirect = {
|
||||
regexSubstitution: parsed.replacement,
|
||||
regexSubstitution: parsed.replacement.replace(/\$(\d+)/g, '\\$1'),
|
||||
};
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue