X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=9e41ec6986f3ff5b89211aa86b7775c291e30e07;hp=cb908ec4ce6c5d017130a469effa3eb4e5b3fce1;hb=f899107d00c9414a83e8a48386e298ba6e270af3;hpb=be6801fa7f6a09cc5fa263fca705bbaa6b3f8808 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index cb908ec..9e41ec6 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -861,6 +861,9 @@ sub component { return $c->_filter_component( $comp, @args ) if $comp; } + return + if $c->config->{disable_component_resolution_regex_fallback}; + # This is here so $c->comp( '::M::' ) works my $query = ref $name ? $name : qr{$name}i;