Allow capitalized names

This commit is contained in:
2023-10-19 03:03:29 +02:00
committed by GitHub
parent 668119d6e0
commit ccf7a218fd

View File

@@ -197,8 +197,7 @@ function generateFileName(name: string) {
.split(' ')
.filter(word => /^[a-zA-Z0-9]/.test(word))
.join(' ')
.replace(/\s+/g, '-')
.toLowerCase();
.replace(/\s+/g, ' ');
return `${formattedName}-${randomHex}.mp3`;
}