Skip to content

Commit

Permalink
use a slightly more correct regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 12, 2014
1 parent 1bf533d commit 7d21365
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Collection.pm
Expand Up @@ -15,7 +15,7 @@ our @EXPORT_OK = ('c');

sub AUTOLOAD {
my $self = shift;
my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);
return $self->pluck($method, @_);
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -20,7 +20,7 @@ use Scalar::Util qw(blessed weaken);
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -48,7 +48,7 @@ our $VERSION = '5.28';
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -27,7 +27,7 @@ my %RESERVED = map { $_ => 1 } (
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
Carp::croak "Undefined subroutine &${package}::$method called"
unless Scalar::Util::blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -13,7 +13,7 @@ has pattern => sub { Mojolicious::Routes::Pattern->new };
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Validator/Validation.pm
Expand Up @@ -10,7 +10,7 @@ has [qw(input output)] => sub { {} };
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^(.*)::(.*)$/;
my ($package, $method) = our $AUTOLOAD =~ /^(.+)::(.+)$/;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down

0 comments on commit 7d21365

Please sign in to comment.