summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2015-02-02 06:50:25 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-02 14:51:34 +0000
commit26ef0f02d693f5106e4ef17748e61e8f68fb05a2 (patch)
tree2ca9e76336abb55e0ec22c7bac62945a7afed734
parent19cdff7a7ad05b7a9a220d44baa54fbdc61adad0 (diff)
downloadchromium_src-26ef0f02d693f5106e4ef17748e61e8f68fb05a2.zip
chromium_src-26ef0f02d693f5106e4ef17748e61e8f68fb05a2.tar.gz
chromium_src-26ef0f02d693f5106e4ef17748e61e8f68fb05a2.tar.bz2
cc: Simplify the presubmit regex used to identify paths and files.
This [\\/] should account for both Windows \ and Posix /. BUG=None TEST=git cl presubmit -uv R=danakj@chromium.org Review URL: https://codereview.chromium.org/892743002 Cr-Commit-Position: refs/heads/master@{#314145}
-rw-r--r--cc/PRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/PRESUBMIT.py b/cc/PRESUBMIT.py
index 71c4ea1f..dc826b1 100644
--- a/cc/PRESUBMIT.py
+++ b/cc/PRESUBMIT.py
@@ -11,7 +11,7 @@ for more details about the presubmit API built into depot_tools.
import re
import string
-CC_SOURCE_FILES=(r'^cc/.*\.(cc|h)$', r'^cc\\.*\.(cc|h)$')
+CC_SOURCE_FILES=(r'^cc[\\/].*\.(cc|h)$',)
def CheckChangeLintsClean(input_api, output_api):
input_api.cpplint._cpplint_state.ResetErrorCounts() # reset global state