Skip to content

Commit

Permalink
simplify a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 3, 2024
1 parent f7b5af1 commit 0595aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.json.parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var push = uncurryThis([].push);

var IS_DIGIT = /^\d$/;
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
var IS_NUMBER_START = /^(?:-|\d)$/;
var IS_NUMBER_START = /^[\d-]$/;
var IS_WHITESPACE = /^[\t\n\r ]$/;

var PRIMITIVE = 0;
Expand Down

0 comments on commit 0595aaf

Please sign in to comment.