mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-20 07:21:23 +02:00
one more \s -> [[:space:]] replacement
This commit is contained in:
@@ -70,7 +70,7 @@ get_json_int_value() {
|
||||
# Get boolean value from json
|
||||
get_json_bool_value() {
|
||||
local filter
|
||||
filter="$(printf 's/.*\[%s\]\s*\([^"]*\)/\\1/p' "$(json_path "${1:-}" "${2:-}")")"
|
||||
filter="$(printf 's/.*\[%s\][[:space:]]*\([^"]*\)/\\1/p' "$(json_path "${1:-}" "${2:-}")")"
|
||||
sed -n "${filter}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user