Skip to content
Permalink
Browse files

Fix bug introduced by me (Zeno)

  • Loading branch information
Zeno- authored and RealBadAngel committed Oct 29, 2014
1 parent dd4c21c commit 6c9bbb03609d79d455266935947f9bb844022972
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/util/string.h
@@ -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 comments on commit 6c9bbb0

Please sign in to comment.
You can’t perform that action at this time.