Revert "[UTC] Generalize version regex"
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 14 Jul 2023 19:21:55 +0000 (12:21 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 14 Jul 2023 20:53:36 +0000 (13:53 -0700)
This reverts commit 4488ee259064532dda24024a7e96037fe9a3c0d9, as it is
built on top of https://reviews.llvm.org/D148216 which is broken.

See also https://github.com/llvm/llvm-project/issues/63746

llvm/utils/UpdateTestChecks/common.py

index 1cc139c37aa6ada6f7adaf47100eb8205420e86f..2a5b8e04a4a86cb37f2616c08773e2e87dd4025c 100644 (file)
@@ -1577,7 +1577,7 @@ def filter_globals_according_to_preference(
 
 # The capture group is kept as is, followed by a {{.*}} glob
 METADATA_FILTERS = [
-    r"(\w+ version )[\d.]+(?: \([^)]+\))?",
+    r"(\w+ version )[\d.]+ \([\w.:/@-]+\.git \w+\)",
     r'(!DIFile\(filename: ".+", directory: )".+"',
 ]
 METADATA_FILTERS_RE = [re.compile(s) for s in METADATA_FILTERS]