From 3b90dc8509d68c8751338a1513526e5b6d021bbf Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 25 Apr 2006 01:23:48 +0000 Subject: [PATCH] more double slash sanitisation, avoids another loop --- ikiwiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ikiwiki b/ikiwiki index 3cf2a7cb3..2dbb42bc4 100755 --- a/ikiwiki +++ b/ikiwiki @@ -156,14 +156,14 @@ sub debug ($) { #{{{ sub basename ($) { #{{{ my $file=shift; - $file=~s!.*/!!; + $file=~s!.*/+!!; return $file; } #}}} sub dirname ($) { #{{{ my $file=shift; - $file=~s!/?[^/]+$!!; + $file=~s!/*[^/]+$!!; return $file; } #}}} -- 2.26.2