Fix sample check rd

This commit is contained in:
Mukhtar Akere
2025-03-31 08:23:11 +01:00
parent f9addaed36
commit 5792305a66
4 changed files with 5 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ var (
MUSICMATCH = "(?i)(\\.)(mp2|mp3|m4a|m4b|m4p|ogg|oga|opus|wma|wav|wv|flac|ape|aif|aiff|aifc)$"
)
var SAMPLEMATCH = `(?i)(^|[\\/]|[._-])(sample|trailer|thumb)s?([._-]|$)`
var SAMPLEMATCH = `(?i)(^|[\\/]|\s|[._-])(sample|trailer|thumb|special|extras?)s?(\s|[._-]|$|/)`
func RegexMatch(regex string, value string) bool {
re := regexp.MustCompile(regex)