summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildscripts/clang_format.py2
-rwxr-xr-xbuildscripts/eslint.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/clang_format.py b/buildscripts/clang_format.py
index ce6ea8538e8..f25f0941736 100755
--- a/buildscripts/clang_format.py
+++ b/buildscripts/clang_format.py
@@ -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:
diff --git a/buildscripts/eslint.py b/buildscripts/eslint.py
index f91423c1255..06562f2f8da 100755
--- a/buildscripts/eslint.py
+++ b/buildscripts/eslint.py
@@ -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: