Update test-license.py

This commit is contained in:
W. Felix Handte
2022-12-20 12:43:16 -05:00
parent 36d5c2f326
commit 4c999cf968
+2 -2
View File
@@ -83,8 +83,8 @@ def valid_copyright(lines):
continue
if "present" in line:
return (False, f"Copyright line '{line}' contains 'present'!")
if "Facebook, Inc" not in line:
return (False, f"Copyright line '{line}' does not contain 'Facebook, Inc'")
if "Meta Platforms, Inc" not in line:
return (False, f"Copyright line '{line}' does not contain 'Meta Platforms, Inc'")
year = YEAR_REGEX.search(line)
if year is not None:
return (False, f"Copyright line '{line}' contains {year.group(0)}; it should be yearless")