mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Merge remote-tracking branch 'origin/master' into topic/seth/metrics-merge
Conflicts: testing/btest/Baseline/coverage.default-load-baseline/canonified_loaded_scripts.log testing/btest/Baseline/scripts.base.frameworks.notice.cluster/manager-1.notice.log testing/btest/Baseline/scripts.base.frameworks.notice.suppression-cluster/manager-1.notice.log testing/btest/Baseline/scripts.base.protocols.ftp.gridftp/notice.log
This commit is contained in:
commit
09cbaa7ccc
114 changed files with 2308 additions and 897 deletions
|
@ -27,7 +27,7 @@ function compress_path(dir: string): string
|
|||
const cdup_sep = /((\/)*([^\/]|\\\/)+)?((\/)+\.\.(\/)*)/;
|
||||
|
||||
local parts = split_n(dir, cdup_sep, T, 1);
|
||||
if ( length(parts) > 1 )
|
||||
if ( |parts| > 1 )
|
||||
{
|
||||
# reaching a point with two parent dir references back-to-back means
|
||||
# we don't know about anything higher in the tree to pop off
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
## characters.
|
||||
function is_string_binary(s: string): bool
|
||||
{
|
||||
return byte_len(gsub(s, /[\x00-\x7f]/, "")) * 100 / |s| >= 25;
|
||||
return |gsub(s, /[\x00-\x7f]/, "")| * 100 / |s| >= 25;
|
||||
}
|
||||
|
||||
## Joins a set of string together, with elements delimited by a constant string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue