summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 16:40:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-11 16:40:25 +0200
commit40e43d180c9cb24215be658329d94412f8a4577c (patch)
tree21cd63d0a1a1907d9a23280cbe221114874d0b3b
parentunixize update again (diff)
downloaddotfiles-bsd-40e43d180c9cb24215be658329d94412f8a4577c.tar.gz
dotfiles-bsd-40e43d180c9cb24215be658329d94412f8a4577c.tar.bz2
dotfiles-bsd-40e43d180c9cb24215be658329d94412f8a4577c.tar.xz
dotfiles-bsd-40e43d180c9cb24215be658329d94412f8a4577c.tar.zst
dotfiles-bsd-40e43d180c9cb24215be658329d94412f8a4577c.zip
unixize update
-rwxr-xr-x.local/bin/unixize5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/unixize b/.local/bin/unixize
index 1a0d0ea..27c1a8b 100755
--- a/.local/bin/unixize
+++ b/.local/bin/unixize
@@ -23,8 +23,9 @@ sub get_new_files
my @new_files;
foreach (@og_files) {
- $_ =~ s/\ -\ /-/g;
- $_ =~ s/\_-\_/-/g;
+ $_ =~ s/\ -\ /-_/g;
+ $_ =~ s/\_-\_/-_/g;
+ $_ =~ s/['"]+/_/g;
$_ =~ s/\ /_/g;
$_ =~ s/[\$#@~!&*%()\[\];,:?^`\\\/<>|]+/-/g;
$_ = lc($_);