StripSpaces: only strip spaces

StripWhitespace maintains old behavior
This commit is contained in:
Shawn Hoffman committed 2022-07-25 18:40:12 -07:00
1 parent e4ff49769c
commit f92541fbd9
20 files changed
+44 -32

No files matched your search

+2 -2
View File
@@ -43,9 +43,9 @@ static Map LoadMap(const std::string& file_path)
if (equals_index != std::string::npos)
{
const std::string_view line_view(line);
const std::string_view game_id = StripSpaces(line_view.substr(0, equals_index));
const std::string_view game_id = StripWhitespace(line_view.substr(0, equals_index));
if (game_id.length() >= 4)
map.emplace(game_id, StripSpaces(line_view.substr(equals_index + 1)));
map.emplace(game_id, StripWhitespace(line_view.substr(equals_index + 1)));
}
}
return map;