]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
re-improve regexp
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Jul 2006 00:31:03 +0000 (00:31 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 4 Jul 2006 00:31:03 +0000 (00:31 +0000)
IkiWiki.pm

index 70d4a7a564326986329b47f135bdf656eba3618b..f8c1f9d3e544ba3386661e5c804237d6577fc186 100644 (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;