Skip to content

Commit

Permalink
fix(linter/eslint): Fix invalid regexp in no_regex_spaces test (#4605)
Browse files Browse the repository at this point in the history
  • Loading branch information
leaysgur authored Aug 4, 2024
1 parent a40a217 commit a664715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn test() {
"var foo = RegExp(' [ ] [ ] ');",
r"var foo = new RegExp(' \[ ');",
r"var foo = new RegExp(' \[ \] ');",
r"var foo = /[\\q{ }]/v;",
"var foo = /[\\q{ }]/v;",
"var foo = new RegExp('[ ');",
"new RegExp('[[abc] ]', flags + 'v')",
];
Expand Down

0 comments on commit a664715

Please sign in to comment.