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

fix(format/html): keep single quotes if string contains a double quote #3960

Conversation

dyc3
Copy link
Contributor

@dyc3 dyc3 commented Sep 17, 2024

Summary

This PR makes it so that we keep single quotes but only when the string contains a ".

Test Plan

Added a test.

@github-actions github-actions bot added A-Formatter Area: formatter L-HTML Language: HTML labels Sep 17, 2024
@dyc3 dyc3 requested review from a team September 17, 2024 17:00
Copy link

codspeed-hq bot commented Sep 17, 2024

CodSpeed Performance Report

Merging #3960 will degrade performances by 20.12%

Comparing 09-17-fix_format_html_keep_single_quotes_if_string_contains_a_double_quote (9b37249) with main (e3b6faf)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 105 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main 09-17-fix_format_html_keep_single_quotes_if_string_contains_a_double_quote Change
big5-added_15586211152145260264.json[cached] 438.2 µs 548.6 µs -20.12%
db_17847247775464589309.json[cached] 13.8 ms 12.8 ms +7.3%

@dyc3 dyc3 merged commit 806e2af into main Sep 17, 2024
14 of 15 checks passed
@dyc3 dyc3 deleted the 09-17-fix_format_html_keep_single_quotes_if_string_contains_a_double_quote branch September 17, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-HTML Language: HTML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants