Skip to content

Commit

Permalink
Merge pull request #13 from graphql/json-lint-fix
Browse files Browse the repository at this point in the history
fix an infinite loop caused by unclosed quotation tag
  • Loading branch information
leebyron committed Aug 26, 2015
2 parents 50d5e2a + 9686b1f commit 917748c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/codemirror/lint/jsonLint.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ function readString() {
default:
throw syntaxError('Bad character escape sequence.');
}
} else if (end === strLen) {
throw syntaxError('Unterminated string.');
}
}

Expand Down

0 comments on commit 917748c

Please sign in to comment.