aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-04-14 00:28:46 +0200
committerJoris Guyonvarch2015-04-14 00:28:46 +0200
commit6fb59397a495fd4e46b794f1be381df7c007ec89 (patch)
tree798766aadc191a7009b7c7cc746c4a83cd60ddf8 /src
parent280f030f652da4abb60c89845f5739ef2e3823bc (diff)
Strip mail addresses in the configuration file
Diffstat (limited to 'src')
-rw-r--r--src/Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Config.hs b/src/Config.hs
index 88eeb1b..76371be 100644
--- a/src/Config.hs
+++ b/src/Config.hs
@@ -74,7 +74,7 @@ configFromFile =
configFromMap :: Map Text Text -> Maybe Config
configFromMap map = do
url <- M.lookup "url" map
- let mailTo = T.splitOn "," <$> M.lookup "mailTo" map
+ let mailTo = fmap T.strip . T.splitOn "," <$> M.lookup "mailTo" map
return $ Config { url = url, mailTo = mailTo }
lineConfig :: Text -> Maybe (Text, Text)