Skip to content

Fix template string escaping - #60303

Merged
Daniel Rosenwasser (DanielRosenwasser) merged 2 commits into
mainfrom
fix59150
Oct 21, 2024
Merged

Fix template string escaping#60303
Daniel Rosenwasser (DanielRosenwasser) merged 2 commits into
mainfrom
fix59150

Conversation

@rbuckton

Copy link
Copy Markdown
Contributor

This fixes the RegExp we use to escape characters for template strings to properly exclude LF characters when the template string is synthetic.

Fixes#59150

@rbuckton

Copy link
Copy Markdown
ContributorAuthor

Daniel Rosenwasser (@DanielRosenwasser) any concerns with taking this for RC?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Milestone BugPRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(Printer): LF newline in template strings is escaped when it shouldn't be

6 participants

@rbuckton@DanielRosenwasser@jakebailey@iisaduan@sandersn@typescript-bot