From bc611d77c427e95927cbdf9349a6c77759e7d38e Mon Sep 17 00:00:00 2001 From: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:26:12 +0900 Subject: [PATCH] chore(module_lexer): Fix invalid regex in test (#4683) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make the #4242 tests pass. (My `RegExp` parser tells me `/as)df/` is invalid syntax. 😂) --- crates/oxc_module_lexer/tests/esm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_module_lexer/tests/esm.rs b/crates/oxc_module_lexer/tests/esm.rs index 255e83da832b3..f84389e122fa3 100644 --- a/crates/oxc_module_lexer/tests/esm.rs +++ b/crates/oxc_module_lexer/tests/esm.rs @@ -785,7 +785,7 @@ fn bracket_matching() { #[test] fn division_regex_ambiguity() { let source = r" - /as)df/; x(); + /asdf/; x(); a / 2; ' / ' while (true) /test'/