Parse : Also split on numbers.
This commit is contained in:
parent
7a972f9a53
commit
32f6ae74d4
|
@ -162,5 +162,5 @@ function parse_json() {
|
||||||
# Get name parts.
|
# Get name parts.
|
||||||
# Usage: _get_parts <STRING>
|
# Usage: _get_parts <STRING>
|
||||||
function _get_parts() {
|
function _get_parts() {
|
||||||
echo "${*}" | sed -e "s/[A-Z]/\n&/g" -e "s/[${_PARSE_SPLIT_CHARS}]/&\n/g" | sed -e "/^$/d"
|
echo "${*}" | sed -e "s/[A-Z]/\n&/g" -e "s/[0-9]\+/\n&/g" -e "s/[${_PARSE_SPLIT_CHARS}]/&\n/g" | sed -e "/^$/d"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue