From 838ce090fd0ba9303ff20daf9ced9cecd5df0751 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 29 Jul 2019 13:15:14 -0400 Subject: [PATCH] =?UTF-8?q?Replace=20em=20dashes=20(=E2=80=94)=20in=20AniL?= =?UTF-8?q?ist=20descriptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- util/Util.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 += '||';