Skip to content

Commit 9cbb740

Browse files
committed
Fix contributor name extraction
1 parent dde60d6 commit 9cbb740

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/generate-github-release.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ function formatRelease({ version, changesContent, contributors, packages }) {
216216
if (contributors.length > 0) {
217217
lines.push("## Contributors");
218218
lines.push("");
219-
lines.push(contributors.map((c) => `@${c}`).join(", "));
219+
lines.push(
220+
contributors
221+
.map((c) => (/^[A-Za-z0-9][-A-Za-z0-9]*$/.test(c) ? `@${c}` : c))
222+
.join(", ")
223+
);
220224
lines.push("");
221225
}
222226

0 commit comments

Comments
 (0)