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

Don't modify the static character replacement table #5

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

deirn
Copy link
Contributor

@deirn deirn commented Aug 8, 2024

When #string() gets called with escapeQuotes == false, it would remove the replacement for " from the table without restoring it. This, in turn, will cause later calls not to escape the quotes, even if escapeQuotes == true.

Modifying the table is ugly IMO, I think it's better to do special check for quote character.

@ix0rai ix0rai added the bug Something isn't working label Aug 8, 2024
Copy link
Member

@ix0rai ix0rai 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 so much!

@ix0rai ix0rai merged commit 21caef5 into QuiltMC:trunk Dec 7, 2024
1 check passed
@deirn deirn deleted the const-table branch December 7, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants