From cede389627a21aa846217c4996ad9d4f6e8bd481 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2019 10:37:55 -0700 Subject: [PATCH] Disallow unescaped ( in parenthesized link title. --- lib/inlines.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inlines.js b/lib/inlines.js index 843bd5b6..f9953d60 100644 --- a/lib/inlines.js +++ b/lib/inlines.js @@ -43,7 +43,7 @@ var reLinkTitle = new RegExp( '|' + '\'(' + ESCAPED_CHAR + '|[^\'\\x00])*\'' + '|' + - '\\((' + ESCAPED_CHAR + '|[^)\\x00])*\\))'); + '\\((' + ESCAPED_CHAR + '|[^()\\x00])*\\))'); var reLinkDestinationBraces = /^(?:<(?:[^<>\n\\\x00]|\\.)*>)/;