mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
Fix build error
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user