Skip to content

Commit

Permalink
Del: Fix del/strikethrough exponential backtracking
Browse files Browse the repository at this point in the history
  • Loading branch information
ariabuckles committed Aug 31, 2019
1 parent f5311e5 commit 31ca48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ var defaultRules /* : DefaultRules */ = {
},
del: {
order: currOrder++,
match: inlineRegex(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s\\~]|\s+(?!~~))+?)~~/),
match: inlineRegex(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~]|\s(?!~~))+?)~~/),
parse: parseCaptureInline,
react: function(node, output, state) {
return reactElement(
Expand Down

0 comments on commit 31ca48a

Please sign in to comment.