Make copyright check slightly more flexible

pull/15255/head
Carl Mastrangelo 7 years ago
parent 8202e8d569
commit e51aa63752
  1. 2
      tools/distrib/check_copyright.py

@ -98,7 +98,7 @@ _EXEMPT = frozenset((
'src/android/test/interop/gradlew.bat', 'src/android/test/interop/gradlew.bat',
)) ))
RE_YEAR = r'Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) gRPC authors.' RE_YEAR = r'Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) gRPC (a|A)uthors(\.|)'
RE_LICENSE = dict( RE_LICENSE = dict(
(k, r'\n'.join(LICENSE_PREFIX[k] + (k, r'\n'.join(LICENSE_PREFIX[k] +
(RE_YEAR if re.search(RE_YEAR, line) else re.escape(line)) (RE_YEAR if re.search(RE_YEAR, line) else re.escape(line))

Loading…
Cancel
Save