mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-06 13:05:18 +02:00
one more \s -> [[:space:]] replacement
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ get_json_int_value() {
|
|||||||
# Get boolean value from json
|
# Get boolean value from json
|
||||||
get_json_bool_value() {
|
get_json_bool_value() {
|
||||||
local filter
|
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}"
|
sed -n "${filter}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user