Correct is_space fix for Windows compatibility

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-08-13 17:19:28 +03:00
committed by Konstantin Pastbin
parent 826b56cabc
commit 55dc1e17e6
7 changed files with 28 additions and 17 deletions

View File

@@ -240,7 +240,7 @@ public:
{
std::string shieldText(rawText);
std::erase_if(shieldText, [](char c) { return c == '-' || ::isspace(c); });
std::erase_if(shieldText, [](char c) { return c == '-' || strings::IsASCIISpace(c); });
if (shieldText.size() <= 2)
return RoadShield(RoadShieldType::Default, rawText);