Skip to content

Commit a1cab04

Browse files
chore(deps): update dependency eslint-plugin-regexp to v2 (#183)
* chore(deps): update dependency eslint-plugin-regexp to v2 * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <[email protected]>
1 parent 127ce46 commit a1cab04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"eslint-plugin-n": "^16.0.0",
7272
"eslint-plugin-node-dependencies": "^0.11.0",
7373
"eslint-plugin-prettier": "^5.0.0",
74-
"eslint-plugin-regexp": "^1.0.0",
74+
"eslint-plugin-regexp": "^2.0.0",
7575
"eslint-plugin-vue": "^9.0.0",
7676
"mocha": "^10.0.0",
7777
"nyc": "^15.1.0",

src/parser/validate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import type { JSONIdentifier } from "./ast";
2626
import type { JSONSyntaxContext } from "./syntax-context";
2727

2828
const lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
29-
const octalNumericLiteralPattern = /^0[Oo]/u;
29+
const octalNumericLiteralPattern = /^0o/iu;
3030
const legacyOctalNumericLiteralPattern = /^0\d/u;
31-
const binaryNumericLiteralPattern = /^0[Bb]/u;
31+
const binaryNumericLiteralPattern = /^0b/iu;
3232

3333
const unicodeCodepointEscapePattern = /\\u\{[\dA-Fa-f]+\}/uy;
3434

0 commit comments

Comments
 (0)