Fix file extension removal

This commit is contained in:
Regalijan 2024-03-26 03:13:50 -04:00
parent eecb9e7b72
commit 8803c7473a
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -211,7 +211,7 @@ export async function onRequestPost(context: RequestContext) {
attachments.push( attachments.push(
new URL(urlResult.value).pathname new URL(urlResult.value).pathname
.replace(/^\/?t?\//, "") .replace(/^\/?t?\//, "")
.replace(/\.w*$/, ""), .replace(/\.\w*$/, ""),
); );
} }