Repository navigation
Don't escape backticks in Java, C# and Python values - #2006
Conversation
The shared escaper put a backslash before every quote character, including backticks. In Java and C# that's an invalid escape, so a value with a backtick broke the build (Python only warned). A language can now set escapedQuotes; Java, C# and Python escape only " and '. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/agentic_review |
PR Summary by QodoPreserve backticks in Java, C# and Python command values
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
Code Review by Qodo
1.
|
The text and value check emitters escaped values that were already escaped, so a quote, backslash or line break in an expected text exported as a check for different text (\\n instead of \n). Also add the missing quotes in the xUnit verifyNotSelectedValue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit da3dca7 |
Description
escapedQuotes: the quote characters to escape in command values. When it's not set, all quotes are escaped as before."', so backticks are left as they are.stringEscape's second argument can list several quote characters.assertText,verifyNotText,assertNotSelectedValue...) escaped values a second time in every language, so a quote, backslash or line break in the expected text exported as a check for different text. They use the value as it is now.verifyNotSelectedValuewas missing the quotes around the value.typevalue with'and backticks in Java, C# and Python.Motivation and Context
The shared escaper put a backslash before backticks for every language.
\`isn't a valid escape in Java or C#, so a value with a backtick (intype,store, or any other command) made the exported test fail to compile. Python accepted it with a warning. JavaScript and Ruby are unchanged.Checked with javac:
"it\'sok"printsit's `ok`.Types of changes
Checklist
🤖 Generated with Claude Code