Skip to content

Commit d6c2cbb

Browse files
authored
Fix test failure if CLANG_VENDOR contains spaces (#81017)
1 parent 514686a commit d6c2cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/UpdateTestChecks/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ def add(var):
17011701

17021702
METADATA_FILTERS = [
17031703
(
1704-
r"(?<=\")(\w+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
1704+
r"(?<=\")(.+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
17051705
r"{{.*}}\2{{.*}}",
17061706
), # preface with glob also, to capture optional CLANG_VENDOR
17071707
(r'(!DIFile\(filename: ".+", directory: )".+"', r"\1{{.*}}"),

0 commit comments

Comments
 (0)