use non-capturing for performance

This commit is contained in:
Graham Ollis
2012-12-19 12:33:19 -05:00
parent ce9e1b955e
commit f4beaf9864
2 changed files with 3 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ sub not_found { @_ > 1 ? $_[0]->{not_found} = $_[1] : $_[0]->{not_found}
sub _template_modified {
my($self, $template) = @_;
return 1 if $self->SUPER::_template_modified($template);
return $template =~ /^templates(\/|\\)/;
return $template =~ /^templates(?:\/|\\)/;
}
sub _template_content {