Commit a73d7931 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix the regexp in DEFAULT_WHITE_LIST.

For example, r".*\.c" was triggering for foo.checksum.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/558026

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@37461 0039d316-1c4b-4281-b951-d872f2087c98
parent 8912ead3
......@@ -150,15 +150,15 @@ class InputApi(object):
# perspective. Don't modify this list from a presubmit script!
DEFAULT_WHITE_LIST = (
# C++ and friends
r".*\.c", r".*\.cc", r".*\.cpp", r".*\.h", r".*\.m", r".*\.mm",
r".*\.inl", r".*\.asm", r".*\.hxx", r".*\.hpp",
r".*\.c$", r".*\.cc$", r".*\.cpp$", r".*\.h$", r".*\.m$", r".*\.mm$",
r".*\.inl$", r".*\.asm$", r".*\.hxx$", r".*\.hpp$",
# Scripts
r".*\.js", r".*\.py", r".*\.sh", r".*\.rb", r".*\.pl", r".*\.pm",
r".*\.js$", r".*\.py$", r".*\.sh$", r".*\.rb$", r".*\.pl$", r".*\.pm$",
# No extension at all, note that ALL CAPS files are black listed in
# DEFAULT_BLACK_LIST below.
r"(^|.*[\\\/])[^.]+$",
r"(^|.*?[\\\/])[^.]+$",
# Other
r".*\.java", r".*\.mk", r".*\.am",
r".*\.java$", r".*\.mk$", r".*\.am$",
)
# Path regexp that should be excluded from being considered containing source
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment