From: Ardis Lu Date: Tue, 9 Jul 2024 05:37:08 +0000 (-0700) Subject: Delete extraneous trim X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=0cd0170f2abaf42831ab7ea4e8f002e16dfeeb42;p=seed-phrase-transposer Delete extraneous trim The regex replace already collapses the whitespace so no there's no need for another trim. --- diff --git a/main.ts b/main.ts index 824d803..831eb61 100644 --- a/main.ts +++ b/main.ts @@ -10,7 +10,7 @@ export function parseInput(input: string | null): Array { const words = input .trim() .replaceAll(/\s+/g, " ") - .split(" ").map((w) => w.trim()); + .split(" "); return words; }