From 1823ff693c4a46ff7a4adbabebcb93a621b6babe Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 23 Nov 2024 21:06:26 +0000 Subject: [PATCH] emfminiserv: make the regex more permissive --- go/emfminiserv/emfminiserv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/emfminiserv/emfminiserv.go b/go/emfminiserv/emfminiserv.go index 0e920845bb..110ca1e067 100644 --- a/go/emfminiserv/emfminiserv.go +++ b/go/emfminiserv/emfminiserv.go @@ -47,7 +47,7 @@ func validateSignature(content, secret, signature string) bool { const ( talkRegexFragment = `[0-9]+(_[\p{L}\p{N}\-]+)?` - fileEndRegexFragment = `[0-9]{8}-[0-9]{6}[.]mp4` + fileEndRegexFragment = `[0-9]{8}-[0-9]{6}(-[a-zA-Z0-9][a-zA-Z0-9\-]*)?[.]mp4` ) var (