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

chore(api)!: Return errors instead of panicking on regexp functions #2105

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

hairyhenderson
Copy link
Owner

Previously, when an invalid regular expression was given to regex.Replace or regex.Match, the functions would panic. Now, the functions return an error instead.

@hairyhenderson hairyhenderson self-assigned this Jun 11, 2024
@hairyhenderson hairyhenderson merged commit 7d193c9 into main Jun 11, 2024
16 checks passed
@hairyhenderson hairyhenderson deleted the regexp-error-instead-of-panic branch June 11, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant