From 1b1b3927eef687ed0fdc4cf12cfb8507645ed4a7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 4 Jan 2011 15:59:28 -0400 Subject: 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. --- IkiWiki/Plugin/tag.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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; } -- cgit v1.2.3