Skip to content

Commit

Permalink
Disallow unescaped ( in parenthesized link title.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 17, 2019
1 parent a16653e commit cede389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inlines.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var reLinkTitle = new RegExp(
'|' +
'\'(' + ESCAPED_CHAR + '|[^\'\\x00])*\'' +
'|' +
'\\((' + ESCAPED_CHAR + '|[^)\\x00])*\\))');
'\\((' + ESCAPED_CHAR + '|[^()\\x00])*\\))');

var reLinkDestinationBraces = /^(?:<(?:[^<>\n\\\x00]|\\.)*>)/;

Expand Down

0 comments on commit cede389

Please # to comment.