Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Should have & in the regex start for YouTube timecode URLs

  • Loading branch information...
commit 01dad440676eb65395333633f34de218427b3dde 1 parent f76ad95
@ryanfb ryanfb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Noembed/Source/YouTube.pm
View
2  lib/Noembed/Source/YouTube.pm
@@ -31,7 +31,7 @@ sub serialize {
my $uri = URI->new($src);
# tack on start parameter if timecode was in original URL
- if (my @t = $req->url =~ /[#\?]a?t=(?:(\d+)m)?(\d+)s/) {
+ if (my @t = $req->url =~ /[&#\?]a?t=(?:(\d+)m)?(\d+)s/) {
my $seconds = pop @t;
if (@t) {
$seconds += $t[0] * 60;
Please sign in to comment.
Something went wrong with that request. Please try again.