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:
parent
80c2fa4542
commit
e25b86e561
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user