Permalink
Browse files

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
  • Loading branch information...
touv committed Sep 2, 2011
1 parent d7222de commit 1a390e91c312db5734e156cc357eda7bb46213a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jsonselect.js
View
@@ -98,7 +98,7 @@
// (8) bogus JSON strings missing a trailing quote
"(\\\")|" +
// (9) identifiers (unquoted)
- "\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
+ "\\.((?:[_a-zA-Z]|[^\\0-\\0177]|\\\\[^\\r\\n\\f0-9a-fA-F])(?:[\$_a-zA-Z0-9\\-]|[^\\u0000-\\u0177]|(?:\\\\[^\\r\\n\\f0-9a-fA-F]))*)" +
")"
);

0 comments on commit 1a390e9

Please sign in to comment.