strip cleanup
This commit is contained in:
parent
f1ab2fcdbb
commit
26594287cc
@ -46,8 +46,7 @@ import Text.ParserCombinators.Parsec
|
|||||||
lowercase = map toLower
|
lowercase = map toLower
|
||||||
uppercase = map toUpper
|
uppercase = map toUpper
|
||||||
|
|
||||||
strip = dropspaces . reverse . dropspaces . reverse
|
strip = dropws . reverse . dropws . reverse where dropws = dropWhile (`elem` " \t")
|
||||||
where dropspaces = dropWhile (`elem` " \t")
|
|
||||||
|
|
||||||
elideLeft width s =
|
elideLeft width s =
|
||||||
case length s > width of
|
case length s > width of
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user