Fix parser

This commit is contained in:
2020-01-31 23:41:47 +01:00
parent b031456619
commit 20a9fcd210

View File

@@ -358,10 +358,10 @@ ghURLParser =
<|> str "git@github.com:"
<|> empty'
)
*> takeWhile1 (\w -> (w /= _slash) && isAlphaNum w)
*> takeWhile1 (/= _slash)
<* word8 _slash
)
<*> (takeWhile1 isAlphaNum <* ((str ".git" <|> empty') <* endOfInput))
<*> (takeWhile1 (/= _period) <* ((str ".git" <|> empty') <* endOfInput))
where
str = string . u8
empty' = str ""