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

regex: avoid escape characters by using a multiline string #2160

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

erf
Copy link
Collaborator

@erf erf commented Aug 28, 2024

I'm using a multiline string to avoid escape characters in the regex string - thus making it a bit more readable.

We combine this with a regular string for the url_scheme.

Thanks @qwerasd205 for explaining you could combine these.

lets concat url_scheme in combo with a multiline (thanks @qwerasd205)

regex: url_scheme -> url_schemes
@mitchellh mitchellh merged commit fa440b7 into ghostty-org:main Aug 28, 2024
17 of 19 checks passed
@mitchellh mitchellh deleted the regex-avoid-escape-chars branch August 28, 2024 22:55
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