Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix file extension removal
  • Loading branch information
regalijan committed Mar 26, 2024
1 parent eecb9e7 commit 8803c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/reports/submit.ts
Expand Up @@ -211,7 +211,7 @@ export async function onRequestPost(context: RequestContext) {
attachments.push(
new URL(urlResult.value).pathname
.replace(/^\/?t?\//, "")
.replace(/\.w*$/, ""),
.replace(/\.\w*$/, ""),
);
}

Expand Down

0 comments on commit 8803c74

Please sign in to comment.