Skip to content

Commit 91ca3a0

Browse files
committed
Merge pull request #25 from touv/patch-1
The goal is to authorize the $ character in identifiers. That enable to u
2 parents 3d44ba2 + 1a390e9 commit 91ca3a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jsonselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
// (8) bogus JSON strings missing a trailing quote
111111
"(\\\")|" +
112112
// (9) identifiers (unquoted)
113-
"\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
113+
"\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[\$_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
114114
")"
115115
);
116116

0 commit comments

Comments
 (0)