Parse : Fix startcase.
This commit is contained in:
parent
34edaae576
commit
5ea5465f6a
|
@ -139,11 +139,13 @@ function parse_sentencecase() {
|
|||
# Usage: parse_startcase <STRING>
|
||||
function parse_startcase() {
|
||||
local IFS=$'\n'
|
||||
local parts=$(_parse_split ${*})
|
||||
local parts=($(_parse_split ${*}))
|
||||
|
||||
for part in ${parts[@]}; do
|
||||
echo -n "${part^}"
|
||||
done
|
||||
|
||||
echo
|
||||
}
|
||||
|
||||
# Parse string to pretty Json.
|
||||
|
|
Reference in a new issue