Index: PRESUBMIT.py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
index be7dccfb15d91bb431bd9b3315b6b272a0a2658d..a0a59081c479979534b244ec0db08704ffbbbcd9 100644 |
--- a/PRESUBMIT.py |
+++ b/PRESUBMIT.py |
@@ -884,7 +884,8 @@ def _CheckHardcodedGoogleHostsInLowerLayers(input_api, output_api): |
_TEST_CODE_EXCLUDED_PATHS + |
input_api.DEFAULT_BLACK_LIST)) |
- base_pattern = '"[^"]*google\.com[^"]*"' |
+ base_pattern = ('"[^"]*(google|googleapis|googlezip|googledrive|appspot)' |
+ '\.(com|net)[^"]*"') |
comment_pattern = input_api.re.compile('//.*%s' % base_pattern) |
pattern = input_api.re.compile(base_pattern) |
problems = [] # items are (filename, line_number, line) |