Fix link regexp

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

View File

@@ -304,9 +304,10 @@ class Link extends Symbol {
/**
* @type {RegExp}
*/
static textAndLinkRegExp: RegExp = new RegExp(
/\[(?<text>.*)\]\((?<link>.*)\)/
);
static textAndLinkRegExp: RegExp = new RegExp
(
/\[(?<text>[^\]]+)\]\((?<link>[^)]+)\)/
);
/**
* @type {string}
*/