Skip to content

Commit

Permalink
fixJsonProblems dropped double-quote
Browse files Browse the repository at this point in the history
  • Loading branch information
Ames committed Feb 10, 2025
1 parent 5e0d4f6 commit cdf9004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function fixJsonProblems(content: string) {
.replace(/(},])/g, '}]')
.replace(/(,})/g, '}')
.replace(/,\s*}/g, '}')
.replace(/(,",)/, ',')
.replace(/(,",)/, '",')
.replace(QUOTE_PATTERN_REGEX, '\\"')
.slice(0, -1)
if (result.endsWith(',')) return result.slice(0, -1)
Expand Down

0 comments on commit cdf9004

Please sign in to comment.