From fdf21bf0ebb3f0bcc74a6d818ed7404160422d58 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sat, 18 Jul 2020 18:11:21 +0200 Subject: [PATCH] remove spaces --- index.ts | 2 +- x2i/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 6f3f409..f9dd990 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -const version = "2.4.0"; +const version = "2.4.1"; import x2i from "./x2i"; import { existsSync } from "fs"; diff --git a/x2i/index.ts b/x2i/index.ts index 9d6be35..11ab312 100644 --- a/x2i/index.ts +++ b/x2i/index.ts @@ -158,7 +158,7 @@ export default function x2i(content: string) { const parts = match.slice(2, 6); if (parts.length === 4) { var [k, l, m, r] = parts; - if (k === "hi") { m = m.toLowerCase() } + if (k === "hi") { m = m.replace(/\s/g, '').toLowerCase() } const converted = force(k, l, m, r); // eg x, [, text, ] if (converted) {