diff options
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index c2c3aac83..70d4a7a56 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -123,7 +123,7 @@ sub dirname ($) { #{{{ sub pagetype ($) { #{{{ my $page=shift; - if ($page =~ /\.(.*)$/) { + if ($page =~ /\.(.*?)$/) { return $1 if exists $hooks{htmlize}{$1}; } return undef; |