mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 04:51:06 +02:00
Fix id return type on netease fetcher
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user