Skip to content
Snippets Groups Projects
Commit d5c95f01 authored by syuilo⭐️'s avatar syuilo⭐️ Committed by GitHub
Browse files

Update link.js

parent 1114cead
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment