From 0387a98f45ced2de2a45944344f5c45e575b664b Mon Sep 17 00:00:00 2001 From: home Date: Sat, 30 Dec 2023 16:14:44 +0300 Subject: [PATCH] Parse : Treat dot as a separator, too. --- .config/bash/module/Parse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/bash/module/Parse.sh b/.config/bash/module/Parse.sh index d940dc0..b8faa53 100644 --- a/.config/bash/module/Parse.sh +++ b/.config/bash/module/Parse.sh @@ -2,7 +2,7 @@ # Usage: parse_simplify function parse_simplify() { echo "${*}" | \ - sed -e "s/ /_/g" \ + sed -e "s/ /_/g" -e "s/\./_/g" \ -e "s/[^[:alnum:]_-]//g" \ -e "s/_\+/_/g" -e "s/-\+/-/g" \ -e "s/_-/_/g" -e "s/-_/_/g" \