aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2020-11-19 23:12:55 -0500
committertdro <tdro@users.noreply.github.com>2020-11-19 23:12:55 -0500
commit49e40db3603f2029ce8c92abaf7f2902b1485cd5 (patch)
tree7808acd77bc4e18474cf7dd4e4d30f9b65250635 /.local
parent1ac47cf787a5803defbad4f27dd68f028c7da1e4 (diff)
downloaddotfiles-49e40db3603f2029ce8c92abaf7f2902b1485cd5.tar.gz
dotfiles-49e40db3603f2029ce8c92abaf7f2902b1485cd5.tar.bz2
dotfiles-49e40db3603f2029ce8c92abaf7f2902b1485cd5.zip
.local/bin/plumber: Single line replace \n
Diffstat (limited to '.local')
-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