Skip to content
New issue

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

feat(extension/youtube): Allow youtube shorts urls to be embedded #4490

Merged
merged 1 commit into from Nov 20, 2023

Conversation

arendjantetteroo
Copy link
Contributor

@arendjantetteroo arendjantetteroo commented Sep 29, 2023

Please describe your changes

Youtube uses /shorts/ for their shorts video. The /embed url works with these id's, the regex did not support them though.

How did you accomplish your changes

This updates the videoId regex to also support the /shorts/ urls.

How have you tested your changes

Tested with several youtube urls
youtu.be link: https://youtu.be/vwXeKbL_k6w?si=jPPIRP8x_0h1RU71
youtube.com embed link: https://www.youtube.com/embed/vwXeKbL_k6w
for example this short: https://youtube.com/shorts/5toiGG5I9yM?si=N6idQiwCYltCKpDC

How can we verify your changes

[add a detailed description of how we can verify your changes here]

Remarks

[add any additional remarks here]

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

Fixes #3582

Youtube uses /shorts/ for their shorts video. The /embed url works with these id's, the regex did not support them though.

This updates the videoId regex to also support the /shorts/ urls.
@netlify
Copy link

netlify bot commented Sep 29, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 4d79cb8
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/6516c2d67e35260008c0d880
😎 Deploy Preview https://deploy-preview-4490--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@janthurau janthurau self-assigned this Nov 18, 2023
@janthurau janthurau changed the base branch from main to develop November 20, 2023 19:51
@janthurau janthurau merged commit b7234c8 into ueberdosis:develop Nov 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Accepting YouTube "shorts" urls
2 participants