fix(scanner): custom tags working again

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-07-26 21:40:41 -04:00
parent d28a282de4
commit 3e61b0426b

View File

@@ -138,8 +138,10 @@ func compileSplitRegex(tagName TagName, split []string) *regexp.Regexp {
escaped = append(escaped, regexp.QuoteMeta(s))
}
// If no valid separators remain, return the original value.
if len(split) > 0 && len(escaped) == 0 {
log.Warn("No valid separators found in split list", "split", split, "tag", tagName)
if len(escaped) == 0 {
if len(split) > 0 {
log.Warn("No valid separators found in split list", "split", split, "tag", tagName)
}
return nil
}