diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index c8e491a0e1..13bce0ad1c 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -15,7 +15,7 @@ class ChatAliases { getDescription () {return "Allows the user to configure their own chat-aliases which will automatically be replaced before the message is being sent.";} - getVersion () {return "1.9.1";} + getVersion () {return "1.9.2";} getAuthor () {return "DevilBro";} @@ -453,7 +453,7 @@ class ChatAliases { if (result) { replaced = true; let replace = aliasdata.file ? "" : BDFDB.insertNRST(aliasdata.replace); - if (result.length > 1) for (var i = 1; i < result.length; i++) replace = replace.replace(new RegExp("\\\\" + i, "g"), result[i]); + if (result.length > 1) for (var i = 1; i < result.length; i++) replace = replace.replace(new RegExp("\\\\" + i + "|\\$" + i, "g"), result[i]); tempstring2 += tempstring1.slice(0, result.index + result[0].length).replace(result[0], replace); tempstring1 = tempstring1.slice(result.index + result[0].length); if (aliasdata.file && typeof aliasdata.filedata == "string") {