We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7e2769 commit d378220Copy full SHA for d378220
sanitize.go
@@ -55,15 +55,15 @@ func RenameTrack(file string) string {
55
56
// Sanitize takes a string and removes problematic characters from it.
57
func Sanitize(s string) string {
58
+ s = unidecode.Unidecode(s)
59
s = strings.Map(func(r rune) rune {
- if r == '(' || r == ')' || r == '[' || r == ']' || r == '.' {
60
+ if r == '(' || r == ')' || r == '[' || r == ']' || r == '.' || r == ',' || r == '\'' || r == '"' || r == ';' {
61
return -1
62
}
63
if unicode.IsSpace(r) {
64
return '_'
65
66
return r
67
}, s)
- s = unidecode.Unidecode(s)
68
return s
69
0 commit comments