]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix patch to not strip a leading "." unless it's part of a path
authorJoey Hess <joey@kitenet.net>
Tue, 4 Jan 2011 19:59:28 +0000 (15:59 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 4 Jan 2011 19:59:28 +0000 (15:59 -0400)
For correctness only, since a tag named ".foo" is very unlikely.

IkiWiki/Plugin/tag.pm

index 707cc5da1b5dbd4941c8e78a0944485503f38779..ff419dff220dc6afabce49939c494b09f6e23348 100644 (file)
@@ -61,7 +61,7 @@ sub tagname ($) {
        if (defined $config{tagbase}) {
                $tag =~ s!^/\Q$config{tagbase}\E/!!;
        } else {
        if (defined $config{tagbase}) {
                $tag =~ s!^/\Q$config{tagbase}\E/!!;
        } else {
-               $tag =~ s!^\.?/?!!;
+               $tag =~ s!^\.?/!!;
        }
        return $tag;
 }
        }
        return $tag;
 }