We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cea9f6 commit 48b4045Copy full SHA for 48b4045
src/Services/YouTube.php
@@ -29,7 +29,7 @@ protected function viewName(): string
29
*/
30
protected function videoId(): ?string
31
{
32
- preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $this->url, $match);
+ preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/|youtube.com/shorts/)([^"&?/ ]{11})%i', $this->url, $match);
33
34
if (array_key_exists(1, $match)) {
35
return $match[1];
0 commit comments