1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-07-26 08:11:24 +00:00

fix getFileExtension missing numeric extensions (e.g. mp4)

This commit is contained in:
Jacky Zhao
2023-08-08 21:31:36 -07:00
parent e21f0f9bb9
commit e4950e06a1
3 changed files with 3 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ function _hasFileExtension(s: string): boolean {
}
function _getFileExtension(s: string): string | undefined {
return s.match(/\.[A-Za-z]+$/)?.[0]
return s.match(/\.[A-Za-z0-9]+$/)?.[0]
}
function _isRelativeSegment(s: string): boolean {