From dbf1e709606d5a2c2f7ea3ce34a3588de26b46ea Mon Sep 17 00:00:00 2001 From: desktop Date: Wed, 25 Oct 2023 14:49:35 +0300 Subject: [PATCH] bash : name : fix extension erasing. --- document/linux/config/bash/module/name.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document/linux/config/bash/module/name.sh b/document/linux/config/bash/module/name.sh index 4240d2d..125cc8e 100644 --- a/document/linux/config/bash/module/name.sh +++ b/document/linux/config/bash/module/name.sh @@ -21,7 +21,7 @@ name() sed -e "s/ /_/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/^_//" -e "s/_$//" )