Skip to content

Use single quote string if it contains double quotes#2

Merged
marcoroth merged 1 commit intomarcoroth:mainfrom
dennispaagman:comments_double_quotes
Jan 8, 2023
Merged

Use single quote string if it contains double quotes#2
marcoroth merged 1 commit intomarcoroth:mainfrom
dennispaagman:comments_double_quotes

Conversation

@dennispaagman
Copy link
Contributor

@dennispaagman dennispaagman commented Jan 8, 2023

I noticed that double quotes are not handled properly, this fixes that by using single quotes if the string contains any double quotes.

Before:
screenshot-2023-01-08-ffauQPpqleTHDJV9@2x

After:
screenshot-2023-01-08-njvRPIk3d3rP15xT@2x

@dennispaagman dennispaagman force-pushed the comments_double_quotes branch from 827d035 to 354ef01 Compare January 8, 2023 08:22
@dennispaagman dennispaagman marked this pull request as ready for review January 8, 2023 08:24
@dennispaagman dennispaagman changed the title Use single quote string if the html comment contains double quotes Use single quote string if it contains double quotes Jan 8, 2023
@marcoroth
Copy link
Owner

That looks good to me, thank you @djfpaagman! 🚀

@marcoroth marcoroth merged commit 7a39697 into marcoroth:main Jan 8, 2023
@marcoroth
Copy link
Owner

Screenshot 2023-01-08 at 15 50 53

also available on the hosted version now 🎉

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