Fix file extension removal
This commit is contained in:
parent
eecb9e7b72
commit
8803c7473a
@ -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*$/, ""),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user