From 30bb1877996f7315564bc963908bf7b079f7f12b Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:53:08 -0400 Subject: [PATCH] Prevent comma eating --- src/utils/github-user-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/github-user-utils.ts b/src/utils/github-user-utils.ts index 8076a5d..dde15a6 100644 --- a/src/utils/github-user-utils.ts +++ b/src/utils/github-user-utils.ts @@ -10,7 +10,7 @@ export async function fixPings(body: string): Promise { const name = m1 ?? m2; const mapping = mappings.find(m => m.github_username == name); - return mapping ? `<@${mapping.discord_id}>` : match; + return mapping ? `<@${mapping.discord_id}>${match.endsWith(',') ? ',' : ''}` : match; }); }