Parse : Lower before startcase.

This commit is contained in:
Dmitry Voronin 2024-10-06 19:49:18 +03:00
parent d26963be06
commit f9f5e3b0c3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -141,7 +141,8 @@
# Usage: parse_startcase <STRING>
function parse_startcase() {
local IFS=$'\n'
local parts=($(_parse_split ''${*}))
local lower="''${*,,}"
local parts=($(_parse_split ''${lower}))
for part in ''${parts[@]}; do
echo -n "''${part^}"