mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix(Util): escapeInlineCode properly (#7587)
This commit is contained in:
@@ -189,7 +189,7 @@ class Util extends null {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
static escapeInlineCode(text) {
|
static escapeInlineCode(text) {
|
||||||
return text.replace(/(?<=^|[^`])`(?=[^`]|$)/g, '\\`');
|
return text.replaceAll('`', '\\`');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user