diff --git a/functions/api/reports/submit.ts b/functions/api/reports/submit.ts index c9bb9ac..c76be06 100644 --- a/functions/api/reports/submit.ts +++ b/functions/api/reports/submit.ts @@ -211,7 +211,7 @@ export async function onRequestPost(context: RequestContext) { attachments.push( new URL(urlResult.value).pathname .replace(/^\/?t?\//, "") - .replace(/\.w*$/, ""), + .replace(/\.\w*$/, ""), ); }