mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Fix id return type on netease fetcher
This commit is contained in:
parent
14aeee888f
commit
493e13ebc0
2 changed files with 4 additions and 8 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue