We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df1b767 commit 9dd38d6Copy full SHA for 9dd38d6
patches/node/fix_ensure_traverseparent_bails_on_resource_path_exit.patch
@@ -38,13 +38,7 @@ index 210a01d24e11764dc9fc37a77b354f11383693f8..ad08cbbe806d9801e0b6049048ed719e
38
+ }
39
+
40
+ auto starts_with = [](const std::string& str, const std::string& prefix) -> bool {
41
-+ if (prefix.size() > str.size()) return false;
42
-+ return std::equal(
43
-+ prefix.begin(), prefix.end(), str.begin(),
44
-+ [](char a, char b) {
45
-+ return std::tolower(static_cast<unsigned char>(a)) ==
46
-+ std::tolower(static_cast<unsigned char>(b));
47
-+ });
++ return base::StartsWith(str, prefix, base::CompareCase::INSENSITIVE_ASCII);
48
+ };
49
50
+ bool did_original_path_start_with_resources_path = starts_with(check_path.
0 commit comments