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')", ];