Skip to content

Commit

Permalink
fix: Glossary-terms flanked by ( or ) wouldn't get linked (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
about-code committed Oct 4, 2019
1 parent 8d77ce2 commit ee998e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linkify.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function removeExtremes(regex, optionalFlags) {

function notInMarkdownLink(regex, optionalFlags) {
return new RegExp(
regex.source + '(?! *\\))(?! *\\])',
regex.source + '(?! *\\)\\[)(?! *\\])',
(optionalFlags || "") + (regex.flags || ""),
);
}
Expand Down

0 comments on commit ee998e7

Please sign in to comment.