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 726c3a1 commit d7d6c6dCopy full SHA for d7d6c6d
lib/utils.js
@@ -346,7 +346,7 @@ function parseJSONWithBigInt(str) {
346
// This replaces the functionality of json-bigint package.
347
// The regex matches integers after: colon (:), comma (,), or open bracket ([)
348
const processed = str.replace(
349
- /(?:[:,\[])\s*(-?\d+)(?=\s*[,}\]])/g,
+ /(?:[:,[])\s*(-?\d+)(?=\s*[,}\]])/g,
350
(match, number) => {
351
const num = Number(number);
352
// If the number is not safe, keep it as a string
0 commit comments