diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-25 01:23:48 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-25 01:23:48 +0000 |
commit | 3b90dc8509d68c8751338a1513526e5b6d021bbf (patch) | |
tree | 30814b44f58a6d85473cb00c6fb685dcf315b004 | |
parent | 1f06b397883128f33b96d6c9c454c2b778a36dd4 (diff) | |
download | ikiwiki-3b90dc8509d68c8751338a1513526e5b6d021bbf.tar ikiwiki-3b90dc8509d68c8751338a1513526e5b6d021bbf.tar.gz |
more double slash sanitisation, avoids another loop
-rwxr-xr-x | ikiwiki | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } #}}} |