bash : name : fix extension erasing.

This commit is contained in:
Dmitry Voronin 2023-10-25 14:49:35 +03:00
parent 30e0c964a2
commit dbf1e70960

View file

@ -21,7 +21,7 @@ name()
sed -e "s/ /_/g" \ sed -e "s/ /_/g" \
-e "s/[^[:alnum:]\._-]//g" \ -e "s/[^[:alnum:]\._-]//g" \
-e "s/_\+/_/g" -e "s/\.\+/\./g" -e "s/-\+/-/g" \ -e "s/_\+/_/g" -e "s/\.\+/\./g" -e "s/-\+/-/g" \
-e "s/_-/_/g" -e "s/-_/_/g" -e "s/\.-/_/g" -e "s/-\./_/g" -e "s/\._/_/g" -e "s/_\./_/g" \ -e "s/_-/_/g" -e "s/-_/_/g" -e "s/\.-/\./g" -e "s/-\./\./g" -e "s/\._/\./g" -e "s/_\./\./g" \
-e "s/_\+/_/g" \ -e "s/_\+/_/g" \
-e "s/^_//" -e "s/_$//" -e "s/^_//" -e "s/_$//"
) )