Skip to content

Commit

Permalink
Merge pull request #1 from kkrohe/escape-sequences
Browse files Browse the repository at this point in the history
Escape sequences
  • Loading branch information
dongryphon committed Feb 4, 2016
2 parents c4494d3 + 32243c8 commit fe8ed1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/json5.js
Expand Up @@ -237,7 +237,8 @@ JSON5.parse = (function () {
} else if (typeof escapee[ch] === 'string') {
string += escapee[ch];
} else {
break;
// javascript treats the '\' char as an escape for any character
string += ch;
}
} else if (ch === '\n') {
// unescaped newlines are invalid; see:
Expand Down

0 comments on commit fe8ed1a

Please sign in to comment.