mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix: incorrect regex when splitting artistName (#2378)
Fixes the incorrect regex used to split a string in the form of `Name1 & Name2` or `Name1, Name2`. Previously the regex was actually splitting on `Name1 &, Name2`...
This commit is contained in:
@ -126,8 +126,8 @@ export const getLyricsList = async (
|
||||
const { artist } = songData;
|
||||
const { artistName } = item;
|
||||
|
||||
const artists = artist.split(/&,/).map((i) => i.trim());
|
||||
const itemArtists = artistName.split(/&,/).map((i) => i.trim());
|
||||
const artists = artist.split(/[&,]/g).map((i) => i.trim());
|
||||
const itemArtists = artistName.split(/[&,]/g).map((i) => i.trim());
|
||||
|
||||
const permutations = [];
|
||||
for (const artistA of artists) {
|
||||
|
||||
Reference in New Issue
Block a user