Fix build error

This commit is contained in:
JCW
2026-06-10 14:15:11 +01:00
parent 87a3427fe1
commit 0883082742
2 changed files with 2 additions and 2 deletions

View File

@@ -205,7 +205,7 @@ scrubSecrets(fmt::memory_buffer& output)
// Fast path: if there's no double-quote anywhere in the message,
// none of the JSON-like tokens can possibly match.
std::string_view const view{output.data(), output.size()};
if (view.find('"') == std::string_view::npos)
if (view.contains('"'))
return;
// We need string operations (find/replace) so convert temporarily.

View File

@@ -64,7 +64,7 @@ protected:
std::string result;
for (char const c : s)
{
if (std::string_view(R"(\^$.|?*+()[]{}-)").find(c) != std::string_view::npos)
if (std::string_view(R"(\^$.|?*+()[]{}-)").contains(c))
result += '\\';
result += c;
}