Skip to content

Commit fe45329

Browse files
committed
Add support for double quote for names
1 parent 4a7ce50 commit fe45329

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/jsonpath.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ export class JSONPath {
376376
i += 1;
377377
continue;
378378
}
379-
if ( c0 === 0x27 /* ' */ ) {
380-
const r = this.#untilChar(query, 0x27 /* ' */, i+1)
379+
if ( c0 === 0x22 /* " */ || c0 === 0x27 /* ' */ ) {
380+
const r = this.#untilChar(query, c0, i+1);
381381
if ( r === undefined ) { return; }
382382
keys.push(r.s);
383383
i = r.i;

0 commit comments

Comments
 (0)