Skip to content
Snippets Groups Projects
Commit 64fd5e69 authored by Justin Norton's avatar Justin Norton Committed by Andreas Mayr
Browse files

Issue #3420823 by jnorton: Allow /shorts path in regex

parent 5f0be6ab
No related branches found
No related tags found
1 merge request!1Update LiteYoutubeEmbedFormatter.php
......@@ -355,8 +355,8 @@ class LiteYoutubeEmbedFormatter extends FormatterBase {
$pattern_group_host .= 'youtu\.be/|youtube\.com/';
// Group path alternatives...
$pattern_group_host .= '(?:';
// Either /embed/ or /v/ or or /watch?v= or /watch?other_param&v=.
$pattern_group_host .= 'embed/|v/|watch\?v=|watch\?.+&v=';
// Either /embed/ or /v/ or /watch?v= or /watch?other_param&v=. or shorts/.
$pattern_group_host .= 'embed/|v/|watch\?v=|watch\?.+&v=|shorts/';
// End path alternatives.
$pattern_group_host .= ')';
// End host alternatives.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment