From e51aa63752f813813e7f202896b0da2ad5286c08 Mon Sep 17 00:00:00 2001 From: Carl Mastrangelo Date: Wed, 2 May 2018 17:23:03 -0700 Subject: [PATCH] Make copyright check slightly more flexible --- tools/distrib/check_copyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py index 66acc733e50..c2d6ce47562 100755 --- a/tools/distrib/check_copyright.py +++ b/tools/distrib/check_copyright.py @@ -98,7 +98,7 @@ _EXEMPT = frozenset(( 'src/android/test/interop/gradlew.bat', )) -RE_YEAR = r'Copyright (?P[0-9]+\-)?(?P[0-9]+) gRPC authors.' +RE_YEAR = r'Copyright (?P[0-9]+\-)?(?P[0-9]+) gRPC (a|A)uthors(\.|)' RE_LICENSE = dict( (k, r'\n'.join(LICENSE_PREFIX[k] + (RE_YEAR if re.search(RE_YEAR, line) else re.escape(line))