Skip to content

Commit

Permalink
Merge pull request #42 from pkg-perl-tools/pkg-perl-1531251779
Browse files Browse the repository at this point in the history
fix regexp warning with perl 5.28
  • Loading branch information
oalders committed Jul 10, 2018
2 parents 43c1b0e + 99da81b commit 1d08813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WWW/YouTube/Download.pm
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ sub _get_args {
if ($line =~ /the uploader has not made this video available in your country/i) {
croak 'Video not available in your country';
}
elsif ($line =~ /^.+ytplayer\.config\s*=\s*({.*})/) {
elsif ($line =~ /^.+ytplayer\.config\s*=\s*(\{.*})/) {
($data, undef) = JSON->new->utf8(1)->decode_prefix($1);
last;
}
Expand Down

0 comments on commit 1d08813

Please sign in to comment.