X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCDBICompat%2FConstraints.pm;h=1014886bec9b60d23369f828fcbb3ee7cadbeb61;hb=fe386563d35a0e019c70500e1fd01b3514942eed;hp=245240091a81701cd2d19ccce55a709f596b7bb7;hpb=701da8c4d6f0b78ffc015085aa410a6cacfcdb40;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/CDBICompat/Constraints.pm b/lib/DBIx/Class/CDBICompat/Constraints.pm index 2452400..1014886 100644 --- a/lib/DBIx/Class/CDBICompat/Constraints.pm +++ b/lib/DBIx/Class/CDBICompat/Constraints.pm @@ -1,4 +1,5 @@ -package DBIx::Class::CDBICompat::Constraints; +package # hide from PAUSE + DBIx::Class::CDBICompat::Constraints; use strict; use warnings; @@ -15,7 +16,7 @@ sub constrain_column { } elsif (ref $how eq "Regexp") { $class->add_constraint(regexp => $col => sub { shift =~ $how }); } else { - $how =~ m/([^:]+)$/; + $how =~ m/([^:]+)$/; # match is safe - we throw above on empty $how my $try_method = sprintf '_constrain_by_%s', lc $1; # $how->moniker; if (my $dispatch = $class->can($try_method)) { $class->$dispatch($col => ($how, @_));