diff options
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 70d4a7a56..f8c1f9d3e 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; |