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 b6288ae commit 50a28ecCopy full SHA for 50a28ec
src/json.ts
@@ -73,7 +73,7 @@ function isWhitespace(code: number) {
73
|| code === CharCode.byteOrderMark;
74
}
75
76
-function stripComments(text: string) {
+function cleanJsonText(text: string) {
77
78
let parts: string[] = [];
79
let partStart = 0;
@@ -212,6 +212,6 @@ function stripComments(text: string) {
212
213
214
export function tolerantParse(text: string) {
215
- text = stripComments(text);
+ text = cleanJsonText(text);
216
return JSON.parse(text);
217
0 commit comments