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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user