Skip to content

Commit

Permalink
Updated youtube regexp to include underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBrillault committed Jul 16, 2018
1 parent 9ababc8 commit 57449c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Classes/Video/MainStream/YouTube.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
class YouTube extends Video
{
protected $regexp = [
'#^https?://www\.youtube\.com/watch\?v=([a-zA-Z0-9]+)#',
'#^https?://youtu\.be/([a-zA-Z0-9]+)#',
'#^https?://www\.youtube\.com/embed/([a-zA-Z0-9]+)#',
'#^https?://www\.youtube\.com/watch\?v=([_a-zA-Z0-9]+)#',
'#^https?://youtu\.be/([_a-zA-Z0-9]+)#',
'#^https?://www\.youtube\.com/embed/([_a-zA-Z0-9]+)#',
];

protected $template = <<<'TEMPLATE'
Expand Down

0 comments on commit 57449c2

Please sign in to comment.