mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix comment
This commit is contained in:
parent
df0d21d92e
commit
2bb3f8c974
1 changed files with 1 additions and 1 deletions
|
|
@ -2241,7 +2241,7 @@ export class AstFilterParser {
|
|||
: before;
|
||||
// TODO: Remove unescaping of `|` once AdGuard filters no longer unduly
|
||||
// escape. In the mean time, if a literal `|` is needed in a path-based
|
||||
// regex, the solution is to use `\x7C` instead of `|`.
|
||||
// regex, the solution is to use `\x7C` instead of `\|`.
|
||||
const source = this.normalizeRegexPattern(regex.replace(/\\\|/g, '|'));
|
||||
if ( source === '' ) { return ''; }
|
||||
const after = `/${source}/`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue