fix(scanner): gracefully handle multi value tag delim splits with adjacent delimiters

closes #448

Co-authored-by: Chris Hayes <chayes@interrobang.sh>
This commit is contained in:
sentriz
2024-01-02 23:06:32 +00:00
parent 59d2bd9e82
commit eb79cecc44
3 changed files with 32 additions and 8 deletions

View File

@@ -518,7 +518,11 @@ func getMusicFolder(musicPaths []MusicPath, p params.Params) string {
}
func lowerUDecOrHash(in string) string {
lower := unicode.ToLower(rune(in[0]))
inRunes := []rune(in)
if len(inRunes) == 0 {
return ""
}
lower := unicode.ToLower(inRunes[0])
if !unicode.IsLetter(lower) {
return "#"
}