diff --git a/server/cards.ts b/server/cards.ts index db282570a..129162f19 100644 --- a/server/cards.ts +++ b/server/cards.ts @@ -102,7 +102,7 @@ const shoot = async (db: Database, mode: 'light' | 'dark'): Promise => { console.log(`Uploading @${username} (${locale}, ${mode}) – ${cardId}`); - const buffer = results[`${locale}/${username.replace(/\.+$/, '').replace(/[^A-Za-z0-9.-]/g, '_')}`]; + const buffer = results[`${locale}/${username.replace(/[^A-Za-z0-9.-]/g, '_')}`]; if (buffer === undefined) { console.error('Cannot find the proper buffer!');