projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e0af16
)
[UTC] Generalize version regex
author
Nikita Popov
<npopov@redhat.com>
Wed, 5 Jul 2023 14:14:43 +0000
(16:14 +0200)
committer
Nikita Popov
<npopov@redhat.com>
Wed, 5 Jul 2023 14:15:47 +0000
(16:15 +0200)
The suffix for the git revision may not be present (or may not be
a git revision).
llvm/utils/UpdateTestChecks/common.py
patch
|
blob
|
history
diff --git
a/llvm/utils/UpdateTestChecks/common.py
b/llvm/utils/UpdateTestChecks/common.py
index
e2f4a14
..
7f89b21
100644
(file)
--- 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.]+
\([\w.:/@-]+\.git \w+\)
",
+ r"(\w+ version )[\d.]+
(?: \([^)]+\))?
",
r'(!DIFile\(filename: ".+", directory: )".+"',
]
METADATA_FILTERS_RE = [re.compile(s) for s in METADATA_FILTERS]