Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Anchor GitHub source regex so it does not incorrectly match weird URLs
  • Loading branch information
zoffixznet committed Dec 16, 2015
1 parent 7148483 commit ae43207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ModulesPerl6/DbBuilder/Dist/Source/GitHub.pm
Expand Up @@ -40,7 +40,7 @@ has _token => Str, (
},
);

sub re { qr{^https?://\Qraw.githubusercontent.com\E/([^/]+)/([^/]+)}i }
sub re { qr{^https?://\Qraw.githubusercontent.com\E/([^/]+)/([^/]+)$}i }

sub load {
my $self = shift;
Expand Down

0 comments on commit ae43207

Please sign in to comment.