summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 738cae4..07674af 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -676,7 +676,7 @@ def _CheckHardcodedGoogleHostsInLowerLayers(input_api, output_api):
def _CheckNoAbbreviationInPngFileName(input_api, output_api):
"""Makes sure there are no abbreviations in the name of PNG files.
"""
- pattern = input_api.re.compile(r'.*_[a-z]_|.*_[a-z].png$')
+ pattern = input_api.re.compile(r'.*_[a-z]_.*\.png$|.*_[a-z]\.png$')
errors = []
for f in input_api.AffectedFiles(include_deletes=False):
if pattern.match(f.LocalPath()):