Update COPYING date to now and fix some [skip CI]

This commit is contained in:
Evan Typanski 2025-01-08 12:00:50 -05:00
parent ac1c55c02a
commit fe44022ee7
27 changed files with 36 additions and 34 deletions

View file

@ -5,20 +5,15 @@ import sys
exit_code = 0
pat1 = re.compile(
copyright_pat = re.compile(
r"See the file \"COPYING\" in the main distribution directory for copyright."
)
# This is the copyright line used within Spicy plugin and popular in
# Spicy analyzers.
pat2 = re.compile(r"Copyright \(c\) 2... by the Zeek Project. See COPYING for details.")
def match_line(line):
for pat in [pat1, pat2]:
m = pat.search(line)
if m is not None:
return True
m = copyright_pat.search(line)
if m is not None:
return True
return False