Fix parser
This commit is contained in:
parent
b031456619
commit
20a9fcd210
@ -358,10 +358,10 @@ ghURLParser =
|
|||||||
<|> str "git@github.com:"
|
<|> str "git@github.com:"
|
||||||
<|> empty'
|
<|> empty'
|
||||||
)
|
)
|
||||||
*> takeWhile1 (\w -> (w /= _slash) && isAlphaNum w)
|
*> takeWhile1 (/= _slash)
|
||||||
<* word8 _slash
|
<* word8 _slash
|
||||||
)
|
)
|
||||||
<*> (takeWhile1 isAlphaNum <* ((str ".git" <|> empty') <* endOfInput))
|
<*> (takeWhile1 (/= _period) <* ((str ".git" <|> empty') <* endOfInput))
|
||||||
where
|
where
|
||||||
str = string . u8
|
str = string . u8
|
||||||
empty' = str ""
|
empty' = str ""
|
||||||
|
Loading…
Reference in New Issue
Block a user