remove spaces

This commit is contained in:
Daniel Olsen 2020-07-18 18:11:21 +02:00
parent a4962f03a5
commit fdf21bf0eb
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const version = "2.4.0"; const version = "2.4.1";
import x2i from "./x2i"; import x2i from "./x2i";
import { existsSync } from "fs"; import { existsSync } from "fs";

View File

@ -158,7 +158,7 @@ export default function x2i(content: string) {
const parts = match.slice(2, 6); const parts = match.slice(2, 6);
if (parts.length === 4) { if (parts.length === 4) {
var [k, l, m, r] = parts; 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, ] const converted = force(k, l, m, r); // eg x, [, text, ]
if (converted) { if (converted) {