1
0
Fork 0

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

pull/14180/head
Loïc Guilloux 2025-05-01 12:32:00 +02:00 committed by GitHub
parent a30f251d05
commit 6f4994329c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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);
}