summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/text/elements/link.js2
1 files changed, 1 insertions, 1 deletions
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];