it was broken
This commit is contained in:
parent
da5f7f5327
commit
8686ba1a3b
1 changed files with 9 additions and 2 deletions
|
@ -221,11 +221,18 @@ namespace NVL
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// early return if string is empty, this should only happen if calling from an object (not a call)
|
// 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))
|
for (auto& c : std::get<std::string>(content))
|
||||||
{
|
{
|
||||||
if (!isspace(c))
|
if (!isspace(c))
|
||||||
return;
|
{
|
||||||
|
only_spaces = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (only_spaces)
|
||||||
|
return;
|
||||||
|
|
||||||
// default case if content does not match keywords
|
// default case if content does not match keywords
|
||||||
this_object.Value = std::get<std::string>(content);
|
this_object.Value = std::get<std::string>(content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue