PeerTube/shared/core-utils/common/regexp.ts

6 lines
194 B
TypeScript
Raw Normal View History

2021-07-22 14:28:03 +02:00
export const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
2021-07-23 11:20:00 +02:00
export function removeFragmentedMP4Ext (path: string) {
return path.replace(/-fragmented.mp4$/i, '')
}