From ad6f4c525311f786769e233baf9913eea5303ec0 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 3 Jul 2006 23:59:34 +0000 Subject: [PATCH] improve regexp --- IkiWiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5