Skip to content

Commit

Permalink
Allow more symbols and all Unicode letters in file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LumePart committed Dec 6, 2024
1 parent d20e250 commit 767c4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/listenbrainz.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func parseWeeklyExploration(identifier, separator string, singleArtist bool) []T
func getFilename(title, artist, separator string) string {

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

Expand Down

0 comments on commit 767c4ad

Please sign in to comment.