From 20fcac24e8c798fb2fb79bf84ebe39c18161d9b0 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 7 Sep 2016 13:03:43 +0000 Subject: [PATCH] Bug 17231 - (QA Followup) Nicer grep Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- C4/HTML5Media.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/HTML5Media.pm b/C4/HTML5Media.pm index 462f6b4183..7f6dff60d8 100644 --- a/C4/HTML5Media.pm +++ b/C4/HTML5Media.pm @@ -98,7 +98,7 @@ sub gethtml5media { # src if ( $HTML5Media_field->subfield('u') ) { $HTML5Media{srcblock} = $HTML5Media_field->subfield('u'); - if (grep /youtube|youtu[.]be/, $HTML5Media_field->subfield('u') ) { + if (grep /youtu\.?be/, $HTML5Media_field->subfield('u') ) { if ($HTML5MediaYouTube == 1) { require WWW::YouTube::Download; import WWW::YouTube::Download qw(playback_url); -- 2.39.5