summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-01-04 15:59:28 -0400
committerJoey Hess <joey@kitenet.net>2011-01-04 15:59:28 -0400
commit1b1b3927eef687ed0fdc4cf12cfb8507645ed4a7 (patch)
tree190f70d89fcdf66759d5301402a53cd1a49bf7b7 /IkiWiki/Plugin
parentfc6c0e8b5b0fb9de7bf798ce71a4ea3132285152 (diff)
fix patch to not strip a leading "." unless it's part of a path
For correctness only, since a tag named ".foo" is very unlikely.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/tag.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 707cc5da1..ff419dff2 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -61,7 +61,7 @@ sub tagname ($) {
if (defined $config{tagbase}) {
$tag =~ s!^/\Q$config{tagbase}\E/!!;
} else {
- $tag =~ s!^\.?/?!!;
+ $tag =~ s!^\.?/!!;
}
return $tag;
}