aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/distrib
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mehrdada@users.noreply.github.com>2018-05-03 11:12:38 -0700
committerGravatar GitHub <noreply@github.com>2018-05-03 11:12:38 -0700
commit6a14efc0236d8ff723c662305b5e7dac7f0cf491 (patch)
treefabdaf18d18dfc579499e61ada2d4225703e5f49 /tools/distrib
parentccb83f0ffff179ff33249cffb00d331b7899926b (diff)
parentee7c77666efd723309a3052d2b0858e0163a0f39 (diff)
Merge pull request #15255 from carl-mastrangelo/copy
Make copyright check slightly more flexible
Diffstat (limited to 'tools/distrib')
-rwxr-xr-xtools/distrib/check_copyright.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py
index 66acc733e5..09eecf471b 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<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]+) ([Tt]he )?gRPC [Aa]uthors(\.|)'
RE_LICENSE = dict(
(k, r'\n'.join(LICENSE_PREFIX[k] +
(RE_YEAR if re.search(RE_YEAR, line) else re.escape(line))