Skip to content
Snippets Groups Projects
Commit 6c9bbb03 authored by Zeno-'s avatar Zeno- Committed by RealBadAngel
Browse files

Fix bug introduced by me (Zeno)

parent dd4c21c1
Branches
Tags
No related merge requests found
......@@ -125,9 +125,10 @@ inline std::vector<std::string> str_split(const std::string &str, char delimiter
inline std::string lowercase(const std::string &s)
{
std::string s2;
std::string s2 = s;
for(size_t i = 0; i < s.size(); i++)
s2[i] = tolower(s.at(i));
if (isupper(s2.at(i)))
s2[i] = tolower(s2.at(i));
return s2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment