oxc/crates
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
..
oxc refactor(oxc,mangler): oxc crate add mangler; mangler use options API 2024-08-20 22:58:59 +08:00
oxc_allocator refactor(allocator): move Box and Vec into separate files (#5034) 2024-08-21 01:08:08 +00:00
oxc_ast refactor(ast)!: remove ReferenceFlag from IdentifierReference (#5077) 2024-08-22 14:30:50 +00:00
oxc_ast_macros Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_cfg Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_codegen fix: comments gen regression (#5003) 2024-08-20 18:57:12 +08:00
oxc_diagnostics Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_index Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_isolated_declarations fix(isolated_declarations): namespaces that are default exported should be considered for expando functions (#4935) 2024-08-19 11:24:05 +08:00
oxc_language_server refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_linter Release oxlint v0.8.0 (#5104) 2024-08-23 11:09:14 +08:00
oxc_macros chore(linter): update docs for declare_oxc_lint! (#4825) 2024-08-11 15:27:54 +00:00
oxc_mangler refactor(semantic)!: rename SymbolTable::get_flag to get_flags (#5030) 2024-08-21 00:19:58 +00:00
oxc_minifier refactor(ast)!: remove ReferenceFlag from IdentifierReference (#5077) 2024-08-22 14:30:50 +00:00
oxc_module_lexer Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_parser fix(parser): only show flow error if it's a flow file (#5069) 2024-08-22 12:19:45 +00:00
oxc_prettier refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_regular_expression chore(regular_expression): Update example to support RegExp constructor (#5106) 2024-08-23 04:57:32 +00:00
oxc_semantic fix(semantic): incorrect semantic check for label has same name (#5041) 2024-08-23 10:36:12 +08:00
oxc_sourcemap Release crates v0.24.3 (#4950) 2024-08-18 14:16:25 +08:00
oxc_span refactor(span): clarify Atom conversion methods lifetimes (#4978) 2024-08-19 11:53:01 +00:00
oxc_syntax refactor(syntax)!: rename ReferenceFlag to ReferenceFlags (#5023) 2024-08-21 00:19:56 +00:00
oxc_transformer refactor(transformer/exponentiation-operator): use built-in ctx.clone_identifier_reference (#5086) 2024-08-22 21:21:36 +00:00
oxc_traverse refactor(ast)!: remove ReferenceFlag from IdentifierReference (#5077) 2024-08-22 14:30:50 +00:00
oxc_wasm feat(transformer): always pass in symbols and scopes (#5087) 2024-08-22 16:06:31 +00:00