aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/common/regexp.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/common/regexp.ts')
-rw-r--r--shared/core-utils/common/regexp.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/core-utils/common/regexp.ts b/shared/core-utils/common/regexp.ts
new file mode 100644
index 000000000..59eb87eb6
--- /dev/null
+++ b/shared/core-utils/common/regexp.ts
@@ -0,0 +1,5 @@
1export const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
2
3export function removeFragmentedMP4Ext (path: string) {
4 return path.replace(/-fragmented.mp4$/i, '')
5}