improve regexp
parent
5fa050cea0
commit
ad6f4c5253
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue