Skip to content

Commit

Permalink
Chore: update blogpost template (#12154)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea authored and kaicataldo committed Aug 26, 2019
1 parent 6abc7b7 commit 77f8ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/blogpost.md.ejs
Expand Up @@ -14,7 +14,7 @@ const RULE_REGEX = new RegExp(`\`?\\b(${ruleList.join("|")})\\b\`?`, "g");
function linkify(line) {
return line
.replace(/#(\d+)/g, "[#$1](https://github.com/eslint/eslint/issues/$1)")
.replace(/([^\s/]+[/][^\s/]+)?#(\d+)/g, (_, repo, num) => `[${repo || ""}#${num}](https://github.com/${repo || "eslint/eslint"}/issues/${num})`)
.replace(RULE_REGEX, "[$&](/docs/rules/$1)");
}
Expand Down

0 comments on commit 77f8ed1

Please sign in to comment.