mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
fix strip_*_space()
This commit is contained in:
parent
851030ea8f
commit
99d12434dd
@ -1090,10 +1090,10 @@ strip_spaces() {
|
|||||||
|
|
||||||
# https://web.archive.org/web/20121022051228/http://codesnippets.joyent.com/posts/show/1816
|
# https://web.archive.org/web/20121022051228/http://codesnippets.joyent.com/posts/show/1816
|
||||||
strip_leading_space() {
|
strip_leading_space() {
|
||||||
echo "${1#"${1%%[\![:space:]]*}"}"
|
printf "%s" "${1#"${1%%[![:space:]]*}"}"
|
||||||
}
|
}
|
||||||
strip_trailing_space() {
|
strip_trailing_space() {
|
||||||
echo "${1%"${1##*[![:space:]]}"}"
|
printf "%s" "${1%"${1##*[![:space:]]}"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user