We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c265d37 commit e7beadaCopy full SHA for e7beada
jsonparse.js
@@ -131,7 +131,7 @@ proto.write = function (buffer) {
131
this.bytes_in_sequence = this.bytes_remaining = 0;
132
i = i + j - 1;
133
} else if (this.bytes_remaining === 0 && n >= 128) { // else if no remainder bytes carried over, parse multi byte (>=128) chars one at a time
134
- if (n <= 193) {
+ if (n <= 193 || n > 244) {
135
return this.onError(new Error("Invalid UTF-8 character at position " + i + " in state " + Parser.toknam(this.tState)));
136
}
137
if ((n >= 194) && (n <= 223)) this.bytes_in_sequence = 2;
0 commit comments