Parse : Treat dot as a separator, too.

This commit is contained in:
Dmitry Voronin 2023-12-30 16:14:44 +03:00
parent 4ac00cee5b
commit 0387a98f45

View file

@ -2,7 +2,7 @@
# Usage: parse_simplify <STRING> # Usage: parse_simplify <STRING>
function parse_simplify() { function parse_simplify() {
echo "${*}" | \ echo "${*}" | \
sed -e "s/ /_/g" \ sed -e "s/ /_/g" -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" \