Repository navigation
Conversation
✅ Deploy Preview for docs-rometools canceled.Built without sensitive environment variables
|
| serde = { version = "1.0.136", features = ["derive"] } | ||
| serde_json = { version = "1.0.74" } | ||
| smallvec = { workspace = true } | ||
| regex = "1.8.4" |
There was a problem hiding this comment.
regex is a big crate (size and compile time), and we have tried to avoid it for a long time 😅
Now, I am not saying that we shouldn't. How difficult is implementing this rule without regex? I think it's difficult; then I believe it's time to include it.
Would you mind adding regex to the root Cargo.toml? We will need this crate in other places.
There was a problem hiding this comment.
regex is a big crate (size and compile time), and we have tried to avoid it for a long time 😅
I got it and I agree with that.
Firstly, let me try to replace it without regex.
If that seems to take quite a while, I'll change the install location of the crate.
There was a problem hiding this comment.
I replaced regex to lexer implementation.
https://github.com/rome/tools/pull/4618/files#diff-eba73c88dc3c490129b5341b6c656e0b2c9831ffe305f19a0c189c79fe0e682aR265
refactor test: parse_escape_sequences chore: codegen and ready chore: CHANGELOG.md
|
@ematipico @Conaclos Thank you for the review. I addressed reviewed points. Please take a look. |
There was a problem hiding this comment.
Looks good to me. Left few suggestions, feel free to merge it whenever you want :)
There was a problem hiding this comment.
I belive these changes should be discarded. Not sure why they are here.
…al_escape.rs Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Summary
Closes #3989
Implement
noNonoctalDecimalEscapeTest Plan
cargo test -p rome_js_analyze -- no_nonoctal_decimal_escapejust r