mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
Fix bug
This commit is contained in:
parent
b73eb710e4
commit
90e5479e5e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = text => {
|
module.exports = text => {
|
||||||
const match = text.match(/^\??\[(.+?)\]\((https?:\/\/[\w\/:%#@\$&\?!\(\)\[\]~\.=\+\-]+)\)/);
|
const match = text.match(/^\??\[([^\[\]]+?)\]\((https?:\/\/[\w\/:%#@\$&\?!\(\)\[\]~\.=\+\-]+)\)/);
|
||||||
if (!match) return null;
|
if (!match) return null;
|
||||||
const silent = text[0] == '?';
|
const silent = text[0] == '?';
|
||||||
const link = match[0];
|
const link = match[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue