Skip to content

Commit

Permalink
fix: Revert "fix: escape github usernames" - it's not necessary
Browse files Browse the repository at this point in the history
This reverts commit a961cf7.
  • Loading branch information
gr2m committed Jul 7, 2023
1 parent 6bc3eea commit 2e77b66
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.js
Expand Up @@ -60,15 +60,11 @@ function toMarkdown(changelogsByComponent) {
.map(([component, changelogs]) => {
return `### ${component}
- ${changelogs.map(escapeGitHubUsername).join("\n- ")}`;
- ${changelogs.join("\n- ")}`;
})
.join("\n\n");
}

function escapeGitHubUsername(string) {
return string.replace(/@([\w-]+)/g, "[@$1](https://github.com/$1)");
}

function yamlEscape(string) {
return string.replace(/"/g, '""');
}

0 comments on commit 2e77b66

Please sign in to comment.