diff options
-rwxr-xr-x | dwim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -182,6 +182,6 @@ sub run { # dirname -- return path without last part sub dirname { my $path = shift; - $path =~ s,/[^/]+,,; + $path =~ s,/[^/]+$,,; return $path; } |
index : dwim | |
do what i mean | Git |
aboutsummaryrefslogtreecommitdiff |
-rwxr-xr-x | dwim | 2 |
@@ -182,6 +182,6 @@ sub run { # dirname -- return path without last part sub dirname { my $path = shift; - $path =~ s,/[^/]+,,; + $path =~ s,/[^/]+$,,; return $path; } |