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 01ab588 commit 0798590Copy full SHA for 0798590
src/json.ts
@@ -112,12 +112,7 @@ function cleanJsonText(text: string) {
112
}
113
114
function scanString() {
115
- while (true) {
116
- if (index >= length) {
117
- // string ended unexpectedly
118
- break;
119
- }
120
-
+ while (index < length) {
121
const code = next();
122
123
if (code === CharCode.doubleQuote) {
@@ -138,6 +133,7 @@ function cleanJsonText(text: string) {
138
133
139
134
140
135
136
+ // eslint-disable-next-line no-constant-condition
141
137
while (true) {
142
143
0 commit comments