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