diff options
author | tdro <tdro@users.noreply.github.com> | 2020-11-19 23:12:55 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-11-19 23:12:55 -0500 |
commit | 49e40db3603f2029ce8c92abaf7f2902b1485cd5 (patch) | |
tree | 7808acd77bc4e18474cf7dd4e4d30f9b65250635 /.local | |
parent | 1ac47cf787a5803defbad4f27dd68f028c7da1e4 (diff) | |
download | dotfiles-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/plumber | 4 |
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 |