Skip to content

JS: add backticks around the concrete parse error#12686

Merged
erik-krogh merged 3 commits into
github:mainfrom
erik-krogh:backtick-parse-error
Mar 31, 2023
Merged

JS: add backticks around the concrete parse error#12686
erik-krogh merged 3 commits into
github:mainfrom
erik-krogh:backtick-parse-error

Conversation

@erik-krogh
Copy link
Copy Markdown
Contributor

No description provided.

@erik-krogh erik-krogh requested a review from smowton March 28, 2023 08:57
@erik-krogh erik-krogh added the no-change-note-required This PR does not need a change note label Mar 28, 2023
@erik-krogh erik-krogh marked this pull request as ready for review March 28, 2023 08:57
@erik-krogh erik-krogh requested a review from a team as a code owner March 28, 2023 08:57
@github-actions github-actions Bot added the JS label Mar 28, 2023
asgerf
asgerf previously approved these changes Mar 28, 2023
@erik-krogh
Copy link
Copy Markdown
Contributor Author

Changed to using StringUtil.quoteWithBackticks based on feedback from @smowton.

asgerf
asgerf previously approved these changes Mar 28, 2023
@smowton
Copy link
Copy Markdown
Contributor

smowton commented Mar 28, 2023

I think the usage of escapeMarkdown still isn't right? That will backslash-escape a bunch of characters that don't have special meaning inside a backtick-delimited code span (and I think the \ characters will show up literally). I think just quoteWithBackticks is sufficient.

@erik-krogh erik-krogh merged commit 1e1a692 into github:main Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants