Skip to content

Conversation

@elibarzilay
Copy link
Contributor

Fixes #44396

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 2, 2021
@sandersn sandersn requested a review from jessetrinity June 18, 2021 21:38
@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 18, 2021
@elibarzilay
Copy link
Contributor Author

@jessetrinity: fixed both, the first force-push was catching up to main, so the changes can be seen in the second one.

@elibarzilay elibarzilay merged commit bb7de99 into microsoft:main Jul 6, 2021
@elibarzilay elibarzilay deleted the 44396 branch July 6, 2021 22:15
elibarzilay added a commit to elibarzilay/TypeScript that referenced this pull request Jul 19, 2021
1. `getRawLiteral()`: barf if `currentSourceFile` is missing, since if
   it is, then the following `getSourceTextOfNodeFromSourceFile` will
   return a bogus `""`.

2. Some `||` -> `??`.

3. `backtickQuoteEscapedCharsRegExp`: escape the usual control
   characters except for a simple LF.  This code does get used to
   generate backtick strings when `rawText` is not given, and not
   escaping things like TAB characters can get mangled by editor
   settings.  Worse, not escaping a CRLF and putting it verbatim in sthe
   string source will interpret it as LF, so add a special case for
   escaping these as `\r\n`.

Related to microsoft#44396 and microsoft#44399.
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Backlog Bug PRs that fix a backlog bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Bad template string refactor w/ existing template strings

3 participants