diff --git a/package.json b/package.json index fe1b3cad..8e62a614 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "107.4.0", + "version": "107.4.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/util/Util.js b/util/Util.js index a1b916ed..d7a6b530 100644 --- a/util/Util.js +++ b/util/Util.js @@ -96,7 +96,8 @@ module.exports = class Util { .replace(/'/g, '\'') .replace(/"/g, '"') .replace(/<\/?i>/g, '*') - .replace(/~!|!~/g, '||'); + .replace(/~!|!~/g, '||') + .replace(/—/g, '—'); if (clean.length > 2000) clean = `${clean.substr(0, 1995)}...`; const spoilers = (clean.match(/\|\|/g) || []).length; if (spoilers !== 0 && (spoilers && (spoilers % 2))) clean += '||';