fix(Util): escapeInlineCode properly (#7587)

This commit is contained in:
Parbez
2022-03-06 20:57:29 +05:30
committed by GitHub
parent 10607dbdaf
commit 851f380eb1

View File

@@ -189,7 +189,7 @@ class Util extends null {
* @returns {string}
*/
static escapeInlineCode(text) {
return text.replace(/(?<=^|[^`])`(?=[^`]|$)/g, '\\`');
return text.replaceAll('`', '\\`');
}
/**