Skip to content

Commit 9975831

Browse files
Potential fix for code scanning alert no. 2: Useless regular-expression character escape
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 908864b commit 9975831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/Markdown.Converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ else
11651165
text = text.replace(/>/g, "&gt;");
11661166

11671167
// Now, escape characters that are magic in Markdown:
1168-
text = escapeCharacters(text, "\*_{}[]\\", false);
1168+
text = escapeCharacters(text, "\\*_{}[]\\\\", false);
11691169

11701170
// jj the line above breaks this:
11711171
//---

0 commit comments

Comments
 (0)