Add "youtu.be" url to the YouTube profile matching
Closed this issue · 4 comments
mindblender commented
When a user copies a YouTube link via the "share" icon, the URL is formatted as "https://youtu.be/8YUpvQ3DX7I".
Would it be possible to add the short YouTube URL as an additional pattern? It appears that YouTube generates that URL on both mobile and desktop browsers.
Thanks!
gkucmierz commented
It is not actually profile link but content link.
mindblender commented
Thanks for the comment.
Should it not be able to be validated using the socialLinks.isValid()
method since it is a valid YouTube link that is provided by YouTube?
gkucmierz commented
It should not be valid actually.
This is library for social links, so it's meant to validate links to profiles.
But you provided link to content, not profile.
mindblender commented
Ok, thank you for the clarification.