summaryrefslogtreecommitdiff
path: root/src/common/text
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-18 02:28:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-18 02:28:31 +0900
commit90e5479e5e19212cce213b270fee4d012bbf2f0f (patch)
treed415be8ffa989b77ef5a9ecde90b5930c19fba7a /src/common/text
parentClean up (diff)
downloadsharkey-90e5479e5e19212cce213b270fee4d012bbf2f0f.tar.gz
sharkey-90e5479e5e19212cce213b270fee4d012bbf2f0f.tar.bz2
sharkey-90e5479e5e19212cce213b270fee4d012bbf2f0f.zip
Fix bug
Diffstat (limited to 'src/common/text')
-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];