Browse Source

str.cpp

webui
Antonio SJ Musumeci 2 weeks ago
parent
commit
70b84e8e33
  1. 8
      src/str.cpp

8
src/str.cpp

@ -353,13 +353,7 @@ str::remove_prefix(const std::string &str_,
const std::string_view prefix_) const std::string_view prefix_)
{ {
if(str::startswith(str_,prefix_)) if(str::startswith(str_,prefix_))
{
std::string s{str_};
s.erase(0,prefix_.size());
return s;
}
return s.substr(prefix_.size());
return str_; return str_;
} }
Loading…
Cancel
Save