From 8803c7473a14f57b9c3193c9c6ec64070e5bb108 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 26 Mar 2024 03:13:50 -0400 Subject: [PATCH] Fix file extension removal --- functions/api/reports/submit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*$/, ""), ); }