fix: formatting
This commit is contained in:
parent
8250f401f5
commit
953b39dba9
1 changed files with 4 additions and 3 deletions
|
@ -30,9 +30,10 @@ const aliasArtist = (artist) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const sanitizeTrack = (track) => {
|
const sanitizeTrack = (track) => {
|
||||||
if (track.includes(' [')) return track.split(' [')[0]
|
let sanitizedTrack = track
|
||||||
if (track.includes(' (')) return track.split(' (')[0]
|
if (track.includes(' [')) sanitizedTrack = track.split(' [')[0]
|
||||||
return track
|
if (track.includes(' (')) sanitizedTrack = track.split(' (')[0]
|
||||||
|
return sanitizedTrack
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async () => {
|
export default async () => {
|
||||||
|
|
Reference in a new issue