Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

unicode hex digits for json

  • Loading branch information...
commit b1b7b871980a3a4d3006cb73cfe4e3c445698d92 1 parent add34cc
@chjj chjj authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/json.js
View
12 lib/json.js
@@ -295,6 +295,18 @@ Parser.prototype._parse = function(data) {
case '7':
case '8':
case '9':
+ case 'a':
+ case 'A':
+ case 'b':
+ case 'B':
+ case 'c':
+ case 'C':
+ case 'd':
+ case 'D':
+ case 'e':
+ case 'E':
+ case 'f':
+ case 'F':
this.unicode += ch;
if (this.unicode.length === 4) {
this.unicode = parseInt(this.unicode, 16);
Please sign in to comment.
Something went wrong with that request. Please try again.