[llvm] 6d64faf - [UTC] Fix git URL regex
Henrik G. Olsson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 05:38:08 PDT 2023
Author: Henrik G. Olsson
Date: 2023-07-05T14:38:02+02:00
New Revision: 6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b
URL: https://github.com/llvm/llvm-project/commit/6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b
DIFF: https://github.com/llvm/llvm-project/commit/6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b.diff
LOG: [UTC] Fix git URL regex
The previous git URL regex only matched SSH urls, starting with 'git@'.
If the repo was cloned using a https URL it would not match.
rdar://105239218
Added:
Modified:
llvm/utils/UpdateTestChecks/common.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index b90e4f6f1dff69..e2f4a14b48db94 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1573,7 +1573,7 @@ def add(var):
# The capture group is kept as is, followed by a {{.*}} glob
METADATA_FILTERS = [
- r"(\w+ version )[\d.]+ \(git@[\w.:/-]+\.git \w+\)",
+ r"(\w+ version )[\d.]+ \([\w.:/@-]+\.git \w+\)",
r'(!DIFile\(filename: ".+", directory: )".+"',
]
METADATA_FILTERS_RE = [re.compile(s) for s in METADATA_FILTERS]
More information about the llvm-commits
mailing list