Skip to content

Commit 7f3c7fe

Browse files
libcxx: Escape backslashes in string for regex
1 parent 7274ce8 commit 7f3c7fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/utils/libcxx/test/features.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,28 +750,28 @@ def check_gdb(cfg):
750750
Feature(
751751
name="_target-has-llvm-20",
752752
when=lambda cfg: BooleanExpression.evaluate(
753-
"_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\d+)?}}",
753+
"_target-has-llvm-21 || target={{.+}}-apple-macosx{{26.[0-9](.\\d+)?}}",
754754
cfg.available_features,
755755
),
756756
),
757757
Feature(
758758
name="_target-has-llvm-19",
759759
when=lambda cfg: BooleanExpression.evaluate(
760-
"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\d+)?}}",
760+
"_target-has-llvm-20 || target={{.+}}-apple-macosx{{15.[4-9](.\\d+)?}}",
761761
cfg.available_features,
762762
),
763763
),
764764
Feature(
765765
name="_target-has-llvm-18",
766766
when=lambda cfg: BooleanExpression.evaluate(
767-
"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\d+)?}}",
767+
"_target-has-llvm-19 || target={{.+}}-apple-macosx{{15.[0-3](.\\d+)?}}",
768768
cfg.available_features,
769769
),
770770
),
771771
Feature(
772772
name="_target-has-llvm-17",
773773
when=lambda cfg: BooleanExpression.evaluate(
774-
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\d+)?}}",
774+
"_target-has-llvm-18 || target={{.+}}-apple-macosx{{14.[4-9](.\\d+)?}}",
775775
cfg.available_features,
776776
),
777777
),

0 commit comments

Comments
 (0)