diff --git a/scripts/jetstream/extract-go-js-api.sh b/scripts/jetstream/extract-go-js-api.sh index 9d82390..4ed7a3b 100755 --- a/scripts/jetstream/extract-go-js-api.sh +++ b/scripts/jetstream/extract-go-js-api.sh @@ -8,7 +8,8 @@ if [[ -f "$go_file" ]]; then { rg -n -F '$JS.API' "$go_file" \ | awk -F: '{print $3}' \ - | sed -E 's/.*"(\$JS\.API[^\"]+)".*/\1/' + | sed -E 's/.*"(\$JS\.API[^\"]+)".*/\1/' \ + | awk '/^\$JS\.API/ && $0 !~ /\.>$/' # Some Go constants are coarse patterns (e.g. "$JS.API.STREAM.>"). # Add explicit subject families used by parity tests/docs.