1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Refactor video links building

This commit is contained in:
Chocobozzz 2021-07-26 14:12:39 +02:00
parent 764b1a14fc
commit 9162fdd363
No known key found for this signature in database
GPG key ID: 583A612D890159BE
22 changed files with 136 additions and 67 deletions

View file

@ -0,0 +1,5 @@
export const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
export function removeFragmentedMP4Ext (path: string) {
return path.replace(/-fragmented.mp4$/i, '')
}