Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit 43eb392dcd08a61ffdc15b3e5f655d39319a40fd
parent f1677a66de6ea21acf8df7c395f8bafeb16555e1
Author: Demonstrandum <moi@knutsen.co>
Date:   Wed, 18 Mar 2020 17:05:39 +0000

Squeeze was broken

Diffstat:
Mlib/extensions.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/extensions.ts b/lib/extensions.ts @@ -71,8 +71,8 @@ Array.prototype.mut_map = function (f) { // String Extensions: String.prototype.squeeze = function () { return this - .replace(/[\t\s]+/g, ' ') - .replace(/\n[\t\s]/g, '\n'); + .replace(/[\t ]+/g, ' ') + .replace(/(\n)[\t ]([^\t ])/g, '$1$2'); }; String.prototype.leading_space = function () {