We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The URL parsing logic in WS should be handled the same as we do in next-app with the REGEX
isValidYoutubeURL
getVideoId
utils.ts
export const YT_REGEX = /^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com\/(?:watch\?(?!.*\blist=)(?:.*&)?v=|embed\/|v\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})(?:[?&]\S+)?$/; export const isValidYoutubeURL = (data: string) => { return data.match(YT_REGEX); }; export const getVideoId = (url: string) => { return url.match(YT_REGEX)?.[1]; };
The text was updated successfully, but these errors were encountered:
@SujithThirumalaisamy Can you please assign me?
Sorry, something went wrong.
geekyharsh05
No branches or pull requests
The URL parsing logic in WS should be handled the same as we do in next-app with the REGEX
isValidYoutubeURL
andgetVideoId
to parse the videoId from all forms of youtube video urlsutils.ts
The text was updated successfully, but these errors were encountered: