Add max_size argument for find_all/find_all_ordered BIFs

This commit is contained in:
Tim Wojtulewicz 2023-02-06 13:08:53 -07:00
parent fc0bfd21d5
commit 8cf1e51623
9 changed files with 88 additions and 4 deletions

View file

@ -39,7 +39,7 @@ event run_test()
# from the response. Not sure how that's helpful. We simply
# grep out the zeek_version_info{...} endpoint="..." pieces and
# expect one for each node to exist as a smoke test.
local version_infos = find_all(response$body, /zeek_version_info\{[^}]+\}/);
local version_infos = find_all(response$body, /zeek_version_info\{[^}]+\}/, 0);
local endpoints: vector of string;
for ( info in version_infos )
for ( ep in find_all(info, /endpoint=\"[^"]+\"/))