Prevent comma eating

This commit is contained in:
Tarrgon
2026-03-10 15:53:08 -04:00
parent 5d387d1281
commit 30bb187799
+1 -1
View File
@@ -10,7 +10,7 @@ export async function fixPings(body: string): Promise<string> {
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;
});
}