Skip to content

Conversation

shirish87
Copy link
Contributor

Handles Bad or unnecessary escaping jshint error and a few other lint errors.

Closes #99.

… JSON.parse()

Data posted by the client may contain stacktraces and other strings that contain escape sequences such as \n.
escapeSpecialChars now handles a wider set of whitespace escape sequences that would otherwise break JSON.parse.
May require support for more escape chars, but this might suffice for most cases.

Fixes browserstack#99
@jzaefferer
Copy link
Contributor

Looks good to me.

shirish87 added a commit that referenced this pull request Aug 14, 2015
@shirish87 shirish87 merged commit b8d44c0 into browserstack:master Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants