aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/plumber4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/plumber b/.local/bin/plumber
index 0c575b9..5d7b0bc 100755
--- a/.local/bin/plumber
+++ b/.local/bin/plumber
@@ -27,7 +27,9 @@ defmodule TextPlumber do
end
def singleLineOf(text) do
- String.replace(text, "\n", "") |> IO.puts()
+ String.replace(text, "\n", " ")
+ |> String.replace(~r/\s\s+/, " ", global: true)
+ |> IO.puts()
end
end