re-improve regexp

master
joey 2006-07-04 00:31:03 +00:00
parent 349ff86006
commit 23ab9057d2
1 changed files with 1 additions and 1 deletions

View File

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