Skip to content

Commit d3b7857

Browse files
committed
chore: fix lint
1 parent 31e8bb9 commit d3b7857

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apify-docs-theme/src/markdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ function linkifyUserTags(tree) {
4949
const match = userTagRegex.exec(child.value);
5050

5151
if (match) {
52-
const [_, username, ending] = match;
52+
const username = match[1];
53+
const ending = match[2] === ' ' ? ' ' : '';
5354
const before = child.value.slice(0, match.index);
5455
const after = child.value.slice(userTagRegex.lastIndex);
5556

@@ -88,7 +89,7 @@ function prettifyPRLinks(tree) {
8889
const match = prLinkRegex.exec(child.value);
8990

9091
if (match) {
91-
const [_, prNumber] = match;
92+
const prNumber = match[1];
9293
const before = child.value.slice(0, match.index);
9394
const after = child.value.slice(prLinkRegex.lastIndex);
9495

0 commit comments

Comments
 (0)