Skip to content

Commit

Permalink
fix(partial-json): handle null token properly
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Jun 28, 2024
1 parent d212ce1 commit f53742f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_vendor/partial-json-parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const tokenize = (input: string) => {
char = input[++current];
}

if (value == 'true' || value == 'false') {
if (value == 'true' || value == 'false' || value === 'null') {
tokens.push({
type: 'name',
value,
Expand Down

0 comments on commit f53742f

Please sign in to comment.