summaryrefslogtreecommitdiffstats
path: root/spaceTo_
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-09-22 22:44:56 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2015-09-22 22:44:56 +0200
commitfb0f97b12ea677c266ff616b736a74dd917b12fa (patch)
tree15eccab1a0bc76f5e2e506d0cca69179b1f74ee7 /spaceTo_
parentbf6ddaaacf0aec9e0074c62f9c356bbba3ed7605 (diff)
downloadbin-fb0f97b12ea677c266ff616b736a74dd917b12fa.zip
bin-fb0f97b12ea677c266ff616b736a74dd917b12fa.tar.gz
spaceTo_ : clean up
Diffstat (limited to 'spaceTo_')
-rwxr-xr-xspaceTo_5
1 files changed, 2 insertions, 3 deletions
diff --git a/spaceTo_ b/spaceTo_
index a8ab671..79647ac 100755
--- a/spaceTo_
+++ b/spaceTo_
@@ -10,17 +10,16 @@ sub proceed{
if($name =~m/^\./){
next;
}
- my $ustring = "\x{b4}";
my $new = $name;
+ my $ustring = "\x{b4}";
+ $new =~ s/$ustring/_/g;
$new =~ s/ /_/g;
$new =~ s/'/_/g;
$new =~ s/[\[\]]/_/g;
- $new =~ s/$ustring/_/g;
$new =~ s/\._/_/g;
$new =~ s/_+\./\./g;
$new =~ s/[_-](-*_*)+/_/g;
$new =~ s/\\/-/g;
- $new =~ s/\\/-/g;
if(defined($prefix)){
$new =~ s/^$prefix//g;
}