We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d26aba commit c4bf5ddCopy full SHA for c4bf5dd
index.js
@@ -593,7 +593,7 @@ exports.astNodeVisitor = {
593
replace(typeRegex);
594
595
const linkWithoutTextRegex = new RegExp(
596
- `@(link (?!https?))${key}(\\.[^\\s\\}]*)*(\\s*\\})`,
+ `@(link (?!https?))${key}((?:\\.[^\\s\\}]*)*\\s*\\})`,
597
'g',
598
);
599
const linkWithTextRegex = new RegExp(
@@ -604,7 +604,7 @@ exports.astNodeVisitor = {
604
// If link is without text, use key as text
605
comment.value = comment.value.replace(
606
linkWithoutTextRegex,
607
- `@$1${key} ${key}$2$3`,
+ `@$1${key} ${key}$2`,
608
609
610
replace(linkWithTextRegex);
0 commit comments