]> sipb.mit.edu Git - ikiwiki.git/commitdiff
improve regexp
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 3 Jul 2006 23:59:34 +0000 (23:59 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 3 Jul 2006 23:59:34 +0000 (23:59 +0000)
IkiWiki.pm

index c2c3aac83825aef47f8b8733ee561c3e2f9f2fbc..70d4a7a564326986329b47f135bdf656eba3618b 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;