Update version, remove xml2js

This commit is contained in:
Daniel Odendahl Jr
2018-06-08 15:37:34 +00:00
parent b4c815f403
commit 0677950e17
2 changed files with 1 additions and 16 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "79.0.0",
"version": "79.0.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {
@@ -45,7 +45,6 @@
"sequelize": "^4.37.10",
"superagent": "^3.8.3",
"uws": "^10.148.0",
"xml2js": "^0.4.19",
"zlib-sync": "^0.1.4"
},
"devDependencies": {
-14
View File
@@ -83,20 +83,6 @@ class Util {
return today;
}
static cleanXML(text) {
return text
.replace(/<br \/>/g, '')
.replace(/&apos;|&#0?39;/g, '\'')
.replace(/&mdash;/g, '—')
.replace(/&ndash;/g, '')
.replace(/&quot;|&#0?34;/g, '"')
.replace(/&lt;|&#0?60;/g, '<')
.replace(/&gt;|&#0?62;/g, '>')
.replace(/&amp;|&#0?38;/g, '&')
.replace(/&eacute;/g, 'é')
.replace(/\[i\]|\[\/i\]/g, '*');
}
static async awaitPlayers(msg, max, min, { text = 'join game', time = 30000 } = {}) {
const joined = [];
joined.push(msg.author.id);