Skip to content

Commit

Permalink
fix: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Feb 13, 2024
1 parent 6a1a8f0 commit 894847d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/include/Utils/StringMisc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ template <typename StringT>
requires IsSomeKindOfString<StringT>
inline void string_trim_(StringT& str)
{
auto not_space = [](auto c) -> bool { return !std::isspace(c); };
auto not_space = [](auto c) -> bool { return c != 32; };

str.erase(std::ranges::find_if(str | std::views::reverse, not_space).base(), str.end());
str.erase(str.begin(), std::ranges::find_if(str, not_space));
Expand Down

0 comments on commit 894847d

Please sign in to comment.