Add tests

This commit is contained in:
Hongbo Wu
2023-01-30 19:10:27 +08:00
parent ec7344b923
commit 61bf89b9ad
2 changed files with 34 additions and 4 deletions

View File

@ -18,7 +18,7 @@ export const getYoutubeVideoId = (url: string) => {
return videoId
}
const getYoutubePlaylistId = (url: string) => {
export const getYoutubePlaylistId = (url: string) => {
const u = new URL(url)
return u.searchParams.get('list')
}