Skip to content

Commit

Permalink
Don't allow whitespace in link destination even with <> (spec 0.24, #28)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Jan 16, 2016
1 parent 4ad942e commit ad6a190
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class InlineParserImpl implements InlineParser {
"\\((" + ESCAPED_CHAR + "|[^)\\x00])*\\))");

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

private static final Pattern LINK_DESTINATION = Pattern.compile(
"^(?:" + REG_CHAR + "+|" + ESCAPED_CHAR + "|\\\\|" + IN_PARENS_NOSP + ")*");
Expand Down

0 comments on commit ad6a190

Please sign in to comment.