0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-25737 ESLint and clang-format "lint-patch" modes can miss files with uppercase characters

This commit is contained in:
Mike Grundy 2016-09-12 11:48:24 -04:00
parent 80c2fa4542
commit e25b86e561
2 changed files with 2 additions and 2 deletions

View File

@ -648,7 +648,7 @@ def get_files_to_check_from_patch(patches):
candidates = []
# Get a list of candidate_files
check = re.compile(r"^diff --git a\/([a-z\/\.\-_0-9]+) b\/[a-z\/\.\-_0-9]+")
check = re.compile(r"^diff --git a\/([\w\/\.\-]+) b\/[\w\/\.\-]+")
lines = []
for patch in patches:

View File

@ -434,7 +434,7 @@ def get_files_to_check_from_patch(patches):
candidates = []
# Get a list of candidate_files
check = re.compile(r"^diff --git a\/([a-z\/\.\-_0-9]+) b\/[a-z\/\.\-_0-9]+")
check = re.compile(r"^diff --git a\/([\w\/\.\-]+) b\/[\w\/\.\-]+")
lines = []
for patch in patches: