From 720021ae77c932531b7d8c70e5838f5a70fcbb6e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 11 Oct 2017 16:58:48 +0000 Subject: [PATCH] Remove useless function --- structures/Util.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/structures/Util.js b/structures/Util.js index 6fc104cf..7c44b859 100644 --- a/structures/Util.js +++ b/structures/Util.js @@ -56,22 +56,6 @@ class Util { format: () => `${hrs < 10 ? `0${hrs}` : hrs}:${min < 10 ? `0${min}` : min}:${sec < 10 ? `0${sec}` : sec}` }; } - - static cleanHTML(text) { - return text - .replace(/&/g, '&') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/"/g, '"') - .replace(/–/g, '–') - .replace(/—/g, '—') - .replace(/©/g, '©') - .replace(/™/g, '™') - .replace(/®/g, '®') - .replace(/(<\/?strong>|<\/?b>)/g, '**') - .replace(/
/g, '\n') - .replace(/(<\/?i>|<\/?em>)/g, '*'); - } } module.exports = Util;