Parse : Also split on numbers.

This commit is contained in:
Dmitry Voronin 2024-01-04 21:25:51 +03:00
parent 7a972f9a53
commit 32f6ae74d4

View file

@ -162,5 +162,5 @@ function parse_json() {
# Get name parts.
# Usage: _get_parts <STRING>
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"
}