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

6 lines
194 B
TypeScript
Raw Normal View History

2021-07-22 07:28:03 -05: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 04:20:00 -05:00
export function removeFragmentedMP4Ext (path: string) {
return path.replace(/-fragmented.mp4$/i, '')
}