]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3232] Update check-for-json-errors-in-doc.sh
authorAndrei Pavel <andrei@isc.org>
Tue, 16 Jun 2026 15:03:52 +0000 (18:03 +0300)
committerAndrei Pavel <andrei@isc.org>
Wed, 17 Jun 2026 10:09:30 +0000 (13:09 +0300)
tools/check-for-json-errors-in-doc.sh

index c7a08d73f81c57fe3f7f71ba91dac85b164a7fc6..ead80e2f981f85ec982dc189aadff507068b63a0 100755 (executable)
@@ -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