Skip to content

Commit fe3ef52

Browse files
committed
bug fix: fix a bug that will cause slash '/' missing in string
inspired by: karminski/streaming-json-go@c19f404
1 parent a470ac0 commit fe3ef52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,9 @@ class Lexer {
14201420
// pop `\` from stack
14211421
this.popTokenStack();
14221422
continue;
1423+
} else if (this.streamStoppedInAString()) {
1424+
this.JSONContent += tokenSymbol;
1425+
continue;
14231426
}
14241427
break;
14251428
case TOKEN_ESCAPE_CHARACTER: // TOKEN_ESCAPE_CHARACTER needs to be defined somewhere

0 commit comments

Comments
 (0)