emfminiserv: make the regex more permissive

This commit is contained in:
Luke Granger-Brown 2024-11-23 21:06:26 +00:00
parent c879c10e37
commit 1823ff693c

View file

@ -47,7 +47,7 @@ func validateSignature(content, secret, signature string) bool {
const ( const (
talkRegexFragment = `[0-9]+(_[\p{L}\p{N}\-]+)?` 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 ( var (