]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
expand the set of things that can be matched contentless
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 4 Oct 2009 20:01:56 +0000 (16:01 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 4 Oct 2009 20:01:56 +0000 (16:01 -0400)
IkiWiki.pm

index c059a9b9f8b3c23b1faf1443cefd7d0692218168..5e5dc739d2696cce58374c2717b453d104521f11 100644 (file)
@@ -1982,9 +1982,7 @@ sub pagespec_contentless ($) {
        while ($spec=~m{
                (\w+)\([^\)]*\) # only match pagespec functions
        }igx) {
-               # only glob and internal can be matched contentless
-               # (first approximation)
-               return 0 if $1 ne "glob" && $1 ne "internal";
+               return 0 unless $1=~/^(glob|internal|creation_month|creation_day|creation_year|created_before|created_after)$/;
        }
 
        return 1;