diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-09-22 22:44:56 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-09-22 22:44:56 +0200 |
commit | fb0f97b12ea677c266ff616b736a74dd917b12fa (patch) | |
tree | 15eccab1a0bc76f5e2e506d0cca69179b1f74ee7 | |
parent | bf6ddaaacf0aec9e0074c62f9c356bbba3ed7605 (diff) | |
download | bin-fb0f97b12ea677c266ff616b736a74dd917b12fa.zip bin-fb0f97b12ea677c266ff616b736a74dd917b12fa.tar.gz |
spaceTo_ : clean up
-rwxr-xr-x | spaceTo_ | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |