Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Dec 11, 2024
1 parent 31e8bb9 commit d3b7857
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apify-docs-theme/src/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function linkifyUserTags(tree) {
const match = userTagRegex.exec(child.value);

if (match) {
const [_, username, ending] = match;
const username = match[1];
const ending = match[2] === ' ' ? ' ' : '';
const before = child.value.slice(0, match.index);
const after = child.value.slice(userTagRegex.lastIndex);

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

if (match) {
const [_, prNumber] = match;
const prNumber = match[1];
const before = child.value.slice(0, match.index);
const after = child.value.slice(prLinkRegex.lastIndex);

Expand Down

0 comments on commit d3b7857

Please sign in to comment.