Index: presubmit_canned_checks.py |
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
index 49ed07c6f853592116aba2a1366cc4b3ec6c61ee..bba7737284127cceb244d60255f6bee10c4244c6 100644 |
--- a/presubmit_canned_checks.py |
+++ b/presubmit_canned_checks.py |
@@ -368,12 +368,13 @@ def CheckLongLines(input_api, output_api, maxlen, source_file_filter=None): |
if line_len <= file_maxlen: |
return True |
- if line_len > extra_maxlen: |
- return False |
- |
+ # Allow long URLs of any length. |
if any((url in line) for url in ('file://', 'http://', 'https://')): |
return True |
+ if line_len > extra_maxlen: |
+ return False |
+ |
if 'url(' in line and file_extension == 'css': |
return True |