improve regexp

master
joey 2006-07-03 23:59:34 +00:00
parent 5fa050cea0
commit ad6f4c5253
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ sub dirname ($) { #{{{
sub pagetype ($) { #{{{ sub pagetype ($) { #{{{
my $page=shift; my $page=shift;
if ($page =~ /\.(.*)$/) { if ($page =~ /\.(.*?)$/) {
return $1 if exists $hooks{htmlize}{$1}; return $1 if exists $hooks{htmlize}{$1};
} }
return undef; return undef;