Update test-license.py

This commit is contained in:
W. Felix Handte 2022-06-21 12:11:22 -04:00
parent 36d5c2f326
commit 4c999cf968

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")