Skip to content

Commit 1a390e9

Browse files
committed
The goal is to authorize the $ character in identifiers. That enable to use JSONSelect with the Google Data Protocol and its Json output - http://code.google.com/intl/fr/apis/gdata/docs/json.html
1 parent d7222de commit 1a390e9

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
@@ -98,7 +98,7 @@
9898
// (8) bogus JSON strings missing a trailing quote
9999
"(\\\")|" +
100100
// (9) identifiers (unquoted)
101-
"\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
101+
"\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[\$_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
102102
")"
103103
);
104104

0 commit comments

Comments
 (0)