From: Andrei Pavel Date: Tue, 16 Jun 2026 15:03:52 +0000 (+0300) Subject: [#3232] Update check-for-json-errors-in-doc.sh X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52f3b0ae88be21fc4d4feb5d56ab08aef0b8d5b0;p=thirdparty%2Fkea.git [#3232] Update check-for-json-errors-in-doc.sh --- diff --git a/tools/check-for-json-errors-in-doc.sh b/tools/check-for-json-errors-in-doc.sh index c7a08d73f8..ead80e2f98 100755 --- a/tools/check-for-json-errors-in-doc.sh +++ b/tools/check-for-json-errors-in-doc.sh @@ -69,7 +69,7 @@ for file in ${files}; do # ignore any map name before top level map line=$(printf '%s' "${line}" | sed 's/.*{/{/g') echo > "${work_file}" - elif [ $comment -eq 0 ] && [ $json -eq 1 ] && [ "$(echo "$line" | grep -c "^\s*[A-Za-z*]\|^\s*\`")" -eq 1 ]; then + elif [ $comment -eq 0 ] && [ $json -eq 1 ] && [ "$(echo "$line" | grep -c "^\s*[A-Za-z=~-]\|^\s*\`")" -eq 1 ]; then # if the line is not a comment and the line starts with spaces followed by 'A-Za-z' or followed by "`" and the parser is processing a json structure json=0 if ! jq . "${work_file}" > /dev/null; then