Catmandu::Fix::trim3pm
Trim leading and ending junk from the value of a field
Usage
# the default mode trims whitespace# e.g. foo => ' abc ';trim(foo) # foo => 'abc';trim(foo, whitespace) # foo => 'abc';# trim non-word characters# e.g. foo => ' abc / : .';trim(foo, nonword) # foo => 'abc';# trim accents# e.g. foo => 'français' ;trim(foo,diacritics) # foo => 'francais'
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.