Commit ff6bf5d9 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Parse multiple repo urls listed in the .cabal/config correctly

The url part cannot contain any chars, since then we allow spaces and ',' and
thus break parsing of following repos.
parent 223230b4
......@@ -250,6 +250,6 @@ showRepo repo = repoName repo ++ ":" ++ repoURL repo
parseRepo :: ReadP r Repo
parseRepo = do name <- munch1 (\c -> isAlphaNum c || c `elem` "_-.")
char ':'
url <- munch1 (const True)
url <- munch1 (\c -> isAlphaNum c || c `elem` "+-=._/*()@'$:;&!?")
return $ Repo { repoName = name, repoURL = url }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment