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

Add regex.escape #691

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

LagunaElectric
Copy link

Added regex.escape to escape regex strings. I saw the issue for this and needed the same, so here it is! It takes a string, escapes all regex chars, and returns it.

Closes #677

src/gleam/regex.gleam Outdated Show resolved Hide resolved
Co-authored-by: Pranav RK <[email protected]>
Copy link

@radar07 radar07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Add regex.escape
2 participants