diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 23:59:34 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 23:59:34 +0000 |
commit | ad6f4c525311f786769e233baf9913eea5303ec0 (patch) | |
tree | 71b571c9171e82930fe8098d7c5f6a6375741083 | |
parent | 5fa050cea05c7a9210e9dabbebbc2e54de66fc21 (diff) |
improve regexp
-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; |