Stripper.Whitespace.normalize-exclamation-mark
You're seeing just the function
normalize-exclamation-mark
, go back to Stripper.Whitespace module for more information.
Specs
Strip out any redundant spaces or other whitespace characters and normalize
them to simple spaces (i.e. " "
). Multiple spaces all get collapsed down to
one space. Newlines, carriage returns, tabs, line-feeds et al all get replaced
with a regular space character.
Functionally, this is equivalent to something like the following:
iex> value = "your value here"
iex> String.trim(Regex.replace(~r/\s+/u, value, " "))
Examples
iex> normalize!("a \t\tbunch\n of \f nonsense\n")
"a bunch of nonsense"
iex> normalize!(" trim me please ")
"trim me please"
iex> normalize!("foo\n\n\nbar")
"foo bar"
iex> normalize!("\u2009unicode\u2008space\u2003")
"unicode space"