Merge pull request #640 from ritschwumm/patch-3

fix typo in comment
This commit is contained in:
jean-emmanuel 2020-07-27 09:39:34 +02:00 • committed by GitHub
commit 1f218188b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ module.exports = {
isJSON: function(str) {
// heuristic to avoid using JSON when unnecessary
// if the string doesn't starts with one of these chars
// if the string doesn't start with one of these chars
// it's going to fail
// ref in source: https://github.com/douglascrockford/JSON-js
return ' \n+-eE{([0123456789tfn"'.indexOf(str[0]) !== -1