Skip to content

Commit

Permalink
chore(module_lexer): Fix invalid regex in test (#4683)
Browse files Browse the repository at this point in the history
To make the #4242 tests pass.

(My `RegExp` parser tells me `/as)df/` is invalid syntax. 😂)
  • Loading branch information
leaysgur authored Aug 6, 2024
1 parent f290191 commit bc611d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_module_lexer/tests/esm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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'/
Expand Down

0 comments on commit bc611d7

Please sign in to comment.