Merge pull request #305 from Alex-CD/main
Fix for exceeded call stack for yt_validate by @Alex-CD
This commit is contained in:
commit
ce9c574607
@ -61,7 +61,7 @@ export function yt_validate(url: string): 'playlist' | 'video' | 'search' | fals
|
||||
else return 'search';
|
||||
}
|
||||
} else {
|
||||
if (!url_.match(playlist_pattern)) return yt_validate(url_.replace(/(\?|\&)list=[^&]+/, ''));
|
||||
if (!url_.match(playlist_pattern)) return yt_validate(url_.replace(/(\?|\&)list=[^&]*/, ''));
|
||||
else return 'playlist';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user