Add codeql comments and small fix (#185931)

This commit is contained in:
Matt Bierner
2023-06-22 17:40:39 -07:00
committed by GitHub
parent 04a2bbc6e0
commit 5ee455116f
6 changed files with 7 additions and 7 deletions

View File

@@ -261,7 +261,7 @@ function escapeHtmlAttribute(attr: string): string {
function escapeMarkdownLinkPath(mdPath: string): string {
if (needsBracketLink(mdPath)) {
return '<' + mdPath.replace('<', '\\<').replace('>', '\\>') + '>';
return '<' + mdPath.replaceAll('<', '\\<').replaceAll('>', '\\>') + '>';
}
return encodeURI(mdPath);