Fix link regexp

This commit is contained in:
2025-09-20 18:59:36 +02:00
parent 5036b3bca6
commit 52b49e18a2

View File

@@ -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}