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 12, 2019
1 parent ccff691 commit 79c0a7c
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 79c0a7c

Please sign in to comment.