Chocobozzz/PeerTube

View on GitHub
packages/core-utils/src/common/regexp.ts

Summary

Maintainability
A
0 mins
Test Coverage
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, '')
}