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)
This commit is contained in:
Yuji Sugiura 2024-08-04 16:07:53 +09:00 committed by GitHub
parent a40a217de4
commit a6647153be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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