Fixed bug in uri parser.
The bug prevented an autolink at the end of a string (e.g. at the end of a line block line) from counting as a link. Closes #711.
This commit is contained in:
parent
65528e48f8
commit
c4b93bc3e7
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ uri = try $ do
|
|||
let uriChunk = skipMany1 wordChar
|
||||
<|> percentEscaped
|
||||
<|> entity
|
||||
<|> (try $ punct >> notFollowedBy (satisfy $ not . isWordChar))
|
||||
<|> (try $ punct >> lookAhead (satisfy isWordChar) >> return ())
|
||||
str <- snd `fmap` withRaw (skipMany1 ( () <$
|
||||
(enclosed (char '(') (char ')') uriChunk
|
||||
<|> enclosed (char '{') (char '}') uriChunk
|
||||
|
|
Loading…
Reference in a new issue