git.iko.soy/typeable/pandoc
on master help sign in
Parsing.uri: don't treat `*` characters at end as part of URI.

This fixes #4561, a bug parsing emphasized bare links in RST.

commitc76565bef5ecdbf1173d23b79dda59df4120cdb9 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 19 Apr 2018, 11:49 (9 years ago) parentb15f4f4
1 file changed+1−1
src/Text/Pandoc/Parsing.hs+1−1
src/Text/Pandoc/Parsing.hs+1−1
@@ -593,7 +593,7 @@ uri = try $ do
593593 -- http://en.wikipedia.org/wiki/State_of_emergency_(disambiguation)
594594 -- as a URL, while NOT picking up the closing paren in
595595 -- (http://wikipedia.org). So we include balanced parens in the URL.
596− let isWordChar c = isAlphaNum c || c `elem` "#$%*+/@\\_-&="
596+ let isWordChar c = isAlphaNum c || c `elem` "#$%+/@\\_-&="
597597 let wordChar = satisfy isWordChar
598598 let percentEscaped = try $ char '%' >> skipMany1 (satisfy isHexDigit)
599599 let entity = () <$ characterReference