Fix id return type on netease fetcher

This commit is contained in:
jeffvli 2023-06-09 14:50:14 -07:00 committed by Jeff
parent 14aeee888f
commit 493e13ebc0
2 changed files with 4 additions and 8 deletions

View file

@ -40,9 +40,7 @@ const SearchResult = ({ data, onClick }: SearchResultProps) => {
}, [score]);
const cleanId =
source === LyricSource.GENIUS
? String(id).replace(/^((http[s]?|ftp):\/)?\/?([^:/\s]+)/g, '')
: id;
source === LyricSource.GENIUS ? id.replace(/^((http[s]?|ftp):\/)?\/?([^:/\s]+)/g, '') : id;
return (
<SearchItem onClick={onClick}>