From a6647153be42b4591c29ac13a45cb73898c36ab3 Mon Sep 17 00:00:00 2001 From: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:07:53 +0900 Subject: [PATCH] fix(linter/eslint): Fix invalid regexp in no_regex_spaces test (#4605) The same as #4544 ![image](https://github.com/user-attachments/assets/79624f6f-f49c-4aa3-bae6-0a4efda0d692) --- crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs b/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs index 5c9679ba2..02aa6833d 100644 --- a/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs +++ b/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs @@ -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')", ];