mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix regex-matching in JSONPath
This commit is contained in:
parent
01427bd754
commit
8491e9c476
1 changed files with 2 additions and 2 deletions
|
|
@ -416,9 +416,9 @@ export class JSONPath {
|
|||
break;
|
||||
}
|
||||
if ( c === 0x5C /* \ */ && (end+1) < len ) {
|
||||
parts.push(query.slice(beg, end));
|
||||
const d = query.charCodeAt(end+1);
|
||||
if ( d === targetCharCode || d === 0x5C ) {
|
||||
if ( d === targetCharCode ) {
|
||||
parts.push(query.slice(beg, end));
|
||||
end += 1;
|
||||
beg = end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue