Fix link regexp
This commit is contained in:
@@ -304,8 +304,9 @@ class Link extends Symbol {
|
|||||||
/**
|
/**
|
||||||
* @type {RegExp}
|
* @type {RegExp}
|
||||||
*/
|
*/
|
||||||
static textAndLinkRegExp: RegExp = new RegExp(
|
static textAndLinkRegExp: RegExp = new RegExp
|
||||||
/\[(?<text>.*)\]\((?<link>.*)\)/
|
(
|
||||||
|
/\[(?<text>[^\]]+)\]\((?<link>[^)]+)\)/
|
||||||
);
|
);
|
||||||
/**
|
/**
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
|||||||
Reference in New Issue
Block a user