Parse : Treat dot as a separator, too.
This commit is contained in:
parent
4ac00cee5b
commit
0387a98f45
|
@ -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" \
|
||||||
|
|
Reference in a new issue