From 6d64faf3b1d96f4dba8c2c46b8b65f1cc978e82b Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Wed, 5 Jul 2023 14:35:00 +0200 Subject: [PATCH] [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 --- llvm/utils/UpdateTestChecks/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.7.4