Skip to content

Commit 767c4ad

Browse files
committed
Allow more symbols and all Unicode letters in file naming
1 parent d20e250 commit 767c4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/listenbrainz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func parseWeeklyExploration(identifier, separator string, singleArtist bool) []T
257257
func getFilename(title, artist, separator string) string {
258258

259259
// Remove illegal characters for file naming
260-
re := regexp.MustCompile("[^a-zA-Z0-9._]+")
260+
re := regexp.MustCompile(`[^\p{L}\d._,\-]+`)
261261
t := re.ReplaceAllString(title, separator)
262262
a := re.ReplaceAllString(artist, separator)
263263

0 commit comments

Comments
 (0)