container: root: common: add cppcheck-suppress stlIfStrFind
`basic_string::starts_with()` is not applicable and breaks functionality
This commit is contained in:
@@ -442,15 +442,15 @@ class PluggableSpace
|
||||
"[a-zA-Z0-9:/_\\-\\.]+"} /* TODO(unassigned): refine */),
|
||||
"invalid characters in pluggable space");
|
||||
|
||||
if (parsed.find('/'))
|
||||
if (parsed.find('/')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"/"}, "::");
|
||||
}
|
||||
if (parsed.find('-'))
|
||||
if (parsed.find('-')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"-"}, "_");
|
||||
}
|
||||
if (parsed.find('.'))
|
||||
if (parsed.find('.')) // cppcheck-suppress stlIfStrFind
|
||||
{
|
||||
parsed = std::regex_replace(parsed, std::regex{"\\."}, "_");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user