Skip to content

Commit

Permalink
Merge b53e3c6 into 9763aa7
Browse files Browse the repository at this point in the history
  • Loading branch information
mbland committed Dec 30, 2023
2 parents 9763aa7 + b53e3c6 commit 9bbe869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function stripJsonComments(jsonStr) {
}
result += curChar
}
return result.replaceAll(/,(\s*)([\]}])/g, ' $1$2')
return result.replaceAll(/,(\s*[\]}])/g, ' $1')
}

/**
Expand Down

0 comments on commit 9bbe869

Please sign in to comment.