aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)