Fix comment

This commit is contained in:
Raymond Hill 2025-12-27 09:51:22 -05:00
parent df0d21d92e
commit 2bb3f8c974
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -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}/`;