Skip to content

fix: Escape more chars#2180

Merged
amitu merged 3 commits intomainfrom
fix/more-escaping
Aug 20, 2025
Merged

fix: Escape more chars#2180
amitu merged 3 commits intomainfrom
fix/more-escaping

Conversation

@siddhantk232
Copy link
Contributor

While making a string during the process outputting js code, we only
escape newline and " (quote) chars. The js output is malformed when
there are \r.

We fix this by escaping some known chars including \r and \t (tab)

While making a string during the process outputting js code, we only
escape newline and " (quote) chars. The js output is malformed when
there are \r.

We fix this by escaping some known chars including \r and \t (tab)
This adds a regression so I am removing this one to fix tests.
@siddhantk232 siddhantk232 requested a review from amitu August 20, 2025 10:57
@amitu amitu merged commit 5b88a47 into main Aug 20, 2025
1 check passed
@amitu amitu deleted the fix/more-escaping branch August 20, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants