Fix code block parsing #116

This commit is contained in:
SillyLossy
2023-04-20 17:10:57 +03:00
parent b30df36b8c
commit 1718452efb

View File

@ -878,7 +878,7 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
mes = mes.replace(/\n/g, "<br/>");
mes = mes.trim();
mes = mes.replace(/<code>[\s\S]*?<\/code>/g, function (match) {
mes = mes.replace(/<code(.*)>[\s\S]*?<\/code>/g, function (match) {
return match.replace(/&amp;/g, '&');
});
}