Skip to content

Commit

Permalink
Issue 14: fix regex issue in php7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed May 11, 2020
1 parent 0eec4a2 commit b39b25c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions video_filter.codecs.inc
Expand Up @@ -16,7 +16,7 @@ function video_filter_codec_info() {
'sample_url' => '//www.archive.org/details/DrupalconBoston2008-TheStateOfDrupal',
'callback' => 'video_filter_archive',
'html5_callback' => 'video_filter_archive',
'regexp' => '/archive\.org\/details\/([\w-_\.]+)/i',
'regexp' => '/archive\.org\/details\/([\w\-_\.]+)/i',
'ratio' => 4 / 3,
);

Expand Down Expand Up @@ -349,8 +349,8 @@ function video_filter_codec_info() {
'sample_url' => '//www.whatchado.com/en/stories/some-title',
'callback' => 'video_filter_whatchado',
'regexp' => array(
'/whatchado\.com\/[a-z]{2}\/stories\/([\w-_]+)/i',
'/whatchado\.com\/[a-z]{2}\/([\w-_]+)/i',
'/whatchado\.com\/[a-z]{2}\/stories\/([\w\-_]+)/i',
'/whatchado\.com\/[a-z]{2}\/([\w\-_]+)/i',
),
'ratio' => 960 / 540,
);
Expand Down

0 comments on commit b39b25c

Please sign in to comment.