Skip to content

Commit fa1d4e7

Browse files
committed
fix regex which chunks out json strings. closes #21
1 parent f2af06f commit fa1d4e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/jsonselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
// (6) bogusly named pseudo something or others
7070
"(:\\w+)|" +
7171
// (7 & 8) identifiers and JSON strings
72-
"(?:(\\.)?(\\\"(?:[^\\\\]|\\\\[^\\\"])*\\\"))|" +
72+
"(?:(\\.)?(\\\"(?:[^\\\\\\\"]|\\\\[^\\\"])*\\\"))|" +
7373
// (8) bogus JSON strings missing a trailing quote
7474
"(\\\")|" +
7575
// (9) identifiers (unquoted)

0 commit comments

Comments
 (0)