oxc/crates/oxc_regular_expression/src
leaysgur c7b81f5762 chore(regular_expression): Update example to support RegExp constructor (#5106)
- Fix example to handle `new RegExp()` too
- Update NOTE comments

- - -

Until I tried interacting with the actual AST parsed by `oxc_parser`, I thought that the current `oxc_regular_expression` lacked support for the `RegExp` constructor due to escape sequences.

This was because `"\""` remained `"\""` after reading the source text from `.js` files.

However, once it was parsed by `oxc_parser`, I found that everything was [resolved](8ef85a43c0/crates/oxc_parser/src/lexer/string.rs)! (Wonderful work as usual. 👏🏻 )

Now there is nothing to worry about. 😌
2024-08-23 04:57:32 +00:00
..
body_parser chore(regular_expression): Update example to support RegExp constructor (#5106) 2024-08-23 04:57:32 +00:00
ast.rs refactor(regular_expression): Misc refactoring for body_parser (#5062) 2024-08-22 11:21:41 +00:00
flag_parser.rs
lib.rs
literal_parser.rs feat(parser): parse regular expression with regex parser (#4998) 2024-08-22 03:09:55 +00:00
options.rs feat(parser): parse regular expression with regex parser (#4998) 2024-08-22 03:09:55 +00:00
span.rs