Skip to content

fix(codegen): do not escape ${ twice in multiline template literals - #43472

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
mainfrom
fix-43459
Oct 16, 2026
Merged

Yury Semikhatsky (yury-s) merged 1 commit into
mainfrom
fix-43459

Conversation

@yury-s

@yury-s Yury Semikhatsky (yury-s) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • quoteMultiline() escaped ${ once inside escape() and once more per line for multiline text, so a multiline toMatchAriaSnapshot with ${ in it was generated as \\${, a literal backslash followed by an interpolation that throws at runtime.
  • Drop the second replace.

Reference #43459

quoteMultiline() already escapes `${` in escape(), so the second replace
produced `\\${` in multiline aria snapshots, which is a literal backslash
followed by an interpolation.

Fixes: #43459
@nancy6547

Copy link
Copy Markdown

Thanks for the quick fix in #43472! Closing since it’s merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants