fix(server): static mail attachment extension (#11254)

* fix: static file extension

* chore: unit tests
This commit is contained in:
Daniel Dietzler
2024-07-21 01:00:46 +02:00
committed by GitHub
parent 54488b1016
commit 7ecdcb3bc0
4 changed files with 441 additions and 17 deletions

View File

@@ -11,6 +11,10 @@ export function getFileNameWithoutExtension(path: string): string {
return basename(path, extname(path));
}
export function getFilenameExtension(path: string): string {
return extname(path);
}
export function getLivePhotoMotionFilename(stillName: string, motionName: string) {
return getFileNameWithoutExtension(stillName) + extname(motionName);
}