summaryrefslogtreecommitdiff
path: root/user/fish/regex-use-different-wrong-escape.patch
blob: 4e9bea5fd41f6e95c7655dc5fb96d76bdafc9c0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -Nurd fish-3.7.1/src/fish_tests.cpp fish-3.7.1.new/src/fish_tests.cpp
--- fish-3.7.1/src/fish_tests.cpp       2024-03-18 20:40:45.000000000 -0700
+++ fish-3.7.1.new/src/fish_tests.cpp   2025-08-11 02:17:54.184887104 -0700
@@ -7009,7 +7009,7 @@

-    // Test with a bad escape; \b is unsupported.
+    // Test with a bad escape; \z is unsupported.
     re_error_t error{};
-    res = re->substitute(subj, L"AAA\\bZZZ", sflags, 0, &error);
+    res = re->substitute(subj, L"AAA\\zZZZ", sflags, 0, &error);
     do_test(!res.has_value());
     do_test(error.code == -57 /* PCRE2_ERROR_BADREPESCAPE */);
     do_test(error.message() == L"bad escape sequence in replacement string");