From 32f6ae74d4ee29930d7dcd1a2bca558cdbf16f0d Mon Sep 17 00:00:00 2001 From: desktop Date: Thu, 4 Jan 2024 21:25:51 +0300 Subject: [PATCH] Parse : Also split on numbers. --- .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 8a1e65d..b7763b3 100644 --- a/.config/bash/module/Parse.sh +++ b/.config/bash/module/Parse.sh @@ -162,5 +162,5 @@ function parse_json() { # Get name parts. # Usage: _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" }