embed-js icon indicating copy to clipboard operation
embed-js copied to clipboard

YouTube plugin not correctly parsing full urls

Open vinnyvimto opened this issue 7 years ago • 1 comments

Using the YouTube plugin the url https://www.youtube.com/watch?v=example&t=6s is not parsed correctly.

The only part passed is youtube.com/watch?v=example leaving the embedded video wrapped in https:// and &t=6s

vinnyvimto avatar Aug 09 '18 17:08 vinnyvimto

This package currently uses https://github.com/regexhq/youtube-regex for parsing the urls. Would you be willing to make a change and submit a PR ?

The line that needs to be changed is https://github.com/ritz078/embed-js/blob/5a58be79ce45497a66e2ef41d3644e3272c0ee19/packages/embed-plugin-youtube/src/index.js#L76

ritz078 avatar Oct 13 '18 14:10 ritz078