Skip to content

Handle strings with single and double quotes#5

Merged
marcoroth merged 1 commit intomarcoroth:mainfrom
thomasklemm:tjk/fix-strings-with-single-and-double-quotes
Jan 9, 2023
Merged

Handle strings with single and double quotes#5
marcoroth merged 1 commit intomarcoroth:mainfrom
thomasklemm:tjk/fix-strings-with-single-and-double-quotes

Conversation

@thomasklemm
Copy link
Contributor

In case we encounter a string with both single and double quotes, we can use a percent literal string to avoid escaping the quotes.

Before:
image

After:
image

In case we encounter a string with both single and double quotes,
we can use a percent literal string to avoid escaping the quotes.
Copy link
Owner

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

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

Thank you for opening this pull request @thomasklemm!

I was also thinking about this when I looked at #2, but figured it's not worth the effort to escape the quotes within the string.

But I haven't thought about the possibility with solving it via %(). So thank you for bringing that up 🙌

@marcoroth marcoroth merged commit d738e39 into marcoroth:main Jan 9, 2023
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