Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace regex crate with fancy_regex #14646

Merged
merged 2 commits into from
Jan 1, 2025
Merged

Conversation

fdncred
Copy link
Collaborator

@fdncred fdncred commented Dec 20, 2024

Description

We removed the regex crate long ago but there were a few instances where we could not remove it because fancy-regex did not have a split/splitn, and maybe other functions. Those functions now exist in the latest fancy-regex crate so we can now remove it.
 

User-Facing Changes

Tests + Formatting

After Submitting

@Bahex
Copy link
Contributor

Bahex commented Dec 20, 2024

Does this mean fancy-regex features like look-around and back-references will be supported in the split commands?

@fdncred
Copy link
Collaborator Author

fdncred commented Dec 20, 2024

Does this mean fancy-regex features like look-around and back-references will be supported in the split commands?

yup, if it's valid regex for fancy-regex. the reason we switch from regex to fancy long ago was that if the "advanced" features of fancy-regex are used then they just work, but if they're not used, it just defaults to the regular regex crate.

@fdncred fdncred merged commit f69b22f into nushell:main Jan 1, 2025
16 checks passed
@fdncred fdncred deleted the remove_regex_crate branch January 1, 2025 23:37
@github-actions github-actions bot added this to the v0.102.0 milestone Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants