]> git.ardis.lu - seed-phrase-transposer/commitdiff
Delete extraneous trim
authorArdis Lu <ardisglu@gmail.com>
Tue, 9 Jul 2024 05:37:08 +0000 (22:37 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 9 Jul 2024 05:37:08 +0000 (22:37 -0700)
The regex replace already collapses the whitespace so no there's no need for another trim.

main.ts

diff --git a/main.ts b/main.ts
index 824d803ecaa3abdba4b94223a179aeb9c987aa32..831eb61586762e7eabb0a3ec50b4eaa9b3d44ef3 100644 (file)
--- a/main.ts
+++ b/main.ts
@@ -10,7 +10,7 @@ export function parseInput(input: string | null): Array<string> {
   const words = input
     .trim()
     .replaceAll(/\s+/g, " ")
-    .split(" ").map((w) => w.trim());
+    .split(" ");
   return words;
 }
 
This page took 0.037214 seconds and 4 git commands to generate.