Skip to content

Commit

Permalink
Disallow unescaped '(' in link title
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Apr 11, 2019
1 parent 7764f8e commit 98fe9fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class InlineParserImpl implements InlineParser, ReferenceParser {
'|' +
"'(" + ESCAPED_CHAR + "|[^'\\x00])*'" +
'|' +
"\\((" + ESCAPED_CHAR + "|[^)\\x00])*\\))");
"\\((" + ESCAPED_CHAR + "|[^()\\x00])*\\))");

private static final Pattern LINK_DESTINATION_BRACES = Pattern.compile(
"^(?:[<](?:[^<>\n\\\\\\x00]|\\\\.)*[>])");
Expand Down

0 comments on commit 98fe9fa

Please sign in to comment.