fix typo in comment

This commit is contained in:
ritschwumm 2020-07-27 00:32:18 +02:00 • committed by GitHub
parent 58a7b47202
commit 88f9372c6b
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