it was broken

This commit is contained in:
lachrymaL 2021-05-16 12:36:44 -04:00
parent da5f7f5327
commit 8686ba1a3b
No known key found for this signature in database
GPG key ID: F3640ACFA174B1C1

View file

@ -221,11 +221,18 @@ namespace NVL
else
{
// early return if string is empty, this should only happen if calling from an object (not a call)
bool only_spaces = true;
for (auto& c : std::get<std::string>(content))
{
if (!isspace(c))
return;
if (!isspace(c))
{
only_spaces = false;
break;
}
}
if (only_spaces)
return;
// default case if content does not match keywords
this_object.Value = std::get<std::string>(content);
}