mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
17 lines
232 B
Text
17 lines
232 B
Text
#
|
|
# @TEST-EXEC: bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event bro_init()
|
|
{
|
|
local a = /foo/;
|
|
local b = /b[a-z]+/;
|
|
local c = merge_pattern(a, b);
|
|
|
|
if ( "bar" == c )
|
|
print "match";
|
|
|
|
if ( "foo" == c )
|
|
print "match";
|
|
|
|
}
|