diff --git a/src/common/text/elements/link.js b/src/common/text/elements/link.js index 03315bb2c0..3e7f1e5d13 100644 --- a/src/common/text/elements/link.js +++ b/src/common/text/elements/link.js @@ -3,7 +3,7 @@ */ module.exports = text => { - const match = text.match(/^\??\[(.+?)\]\((https?:\/\/[\w\/:%#@\$&\?!\(\)\[\]~\.=\+\-]+)\)/); + const match = text.match(/^\??\[([^\[\]]+?)\]\((https?:\/\/[\w\/:%#@\$&\?!\(\)\[\]~\.=\+\-]+)\)/); if (!match) return null; const silent = text[0] == '?'; const link = match[0];