1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-20 13:39:24 -05:00
This commit is contained in:
syuilo 2017-03-18 02:28:31 +09:00
parent b73eb710e4
commit 90e5479e5e

View file

@ -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];