1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-27 22:24:28 +01:00

Fix bf8a241f: Handle \t in trailing whitespaces (#14178)

This commit is contained in:
Loïc Guilloux
2025-05-01 12:32:00 +02:00
committed by GitHub
parent a30f251d05
commit 6f4994329c

View File

@@ -481,7 +481,7 @@ static bool CheckCommandsMatch(std::string_view a, std::string_view b, std::stri
[[nodiscard]] static std::string_view StripTrailingWhitespace(std::string_view str)
{
auto len = str.find_last_not_of("\r\n ");
auto len = str.find_last_not_of("\r\n\t ");
if (len == std::string_view::npos) return {};
return str.substr(0, len + 1);
}