diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 00:31:03 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-04 00:31:03 +0000 |
commit | 23ab9057d2999de112880ee82a818149f42d0d7b (patch) | |
tree | 67687c4a1125738b1a5b382d756ca9056c6f0ec3 | |
parent | 349ff86006b337b7f3cc9d0718c46e68c6f3a41e (diff) |
re-improve regexp
-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; |