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) {