mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge remote-tracking branch 'origin/topic/johanna/string_vec_null'
* origin/topic/johanna/string_vec_null: Make join_string_vec work with vectors containing empty elements. BIT-1495 #merged
This commit is contained in:
commit
ecc09c11ca
3 changed files with 12 additions and 1 deletions
|
@ -4,3 +4,4 @@ mytest
|
|||
this__is__another__test
|
||||
thisisanothertest
|
||||
Test
|
||||
...hi..there
|
||||
|
|
|
@ -10,6 +10,9 @@ event bro_init()
|
|||
local b: string_array = { [1] = "mytest" };
|
||||
local c: string_vec = vector( "this", "is", "another", "test" );
|
||||
local d: string_vec = vector( "Test" );
|
||||
local e: string_vec = vector();
|
||||
e[3] = "hi";
|
||||
e[5] = "there";
|
||||
|
||||
print join_string_array(" * ", a);
|
||||
print join_string_array("", a);
|
||||
|
@ -18,4 +21,5 @@ event bro_init()
|
|||
print join_string_vec(c, "__");
|
||||
print join_string_vec(c, "");
|
||||
print join_string_vec(d, "-");
|
||||
print join_string_vec(e, ".");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue