diff options
author | Henrik G. Olsson <hnrklssn@gmail.com> | 2023-07-05 14:35:00 +0200 |
---|---|---|
committer | Henrik G. Olsson <hnrklssn@gmail.com> | 2023-07-05 14:38:02 +0200 |
commit | 6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b (patch) | |
tree | 17e9ad853b7e7bd685e3fd9ec7a8277f51717caf /llvm/utils/UpdateTestChecks/common.py | |
parent | fc5e76da22cdcd7a3486963ded354d41459744c3 (diff) | |
download | llvm-6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b.zip llvm-6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b.tar.gz llvm-6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b.tar.bz2 |
[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
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index b90e4f6..e2f4a14 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -1573,7 +1573,7 @@ def filter_globals_according_to_preference( # 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] |