Skip to content

Commit 9b2bdbe

Browse files
committed
Fix small eslint error
1 parent 5993497 commit 9b2bdbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilities/markdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ module.exports = function() {
4040
}
4141

4242
if (linksEnabled) {
43-
code = code.replace(/\[([^\[\]]+?)\]\((.+?)\)/g, match => {
44-
match = /\[([^\[\]]+?)\]\((.+?)\)/.exec(match);
43+
code = code.replace(/\[([^[\]]+?)\]\((.+?)\)/g, match => {
44+
match = /\[([^[\]]+?)\]\((.+?)\)/.exec(match);
4545
links.push('<a class="code-link" href="' + match[2] + '">' + match[1] + '</a>');
4646
return "MARKDOWNLINK_" + (links.length - 1) + "_";
4747
});

0 commit comments

Comments
 (0)