From 8686ba1a3b2d11ef2d6e0814dd52914c2629cc49 Mon Sep 17 00:00:00 2001 From: lachrymaL Date: Sun, 16 May 2021 12:36:44 -0400 Subject: [PATCH] it was broken --- NouVeL/NVL.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/NouVeL/NVL.cpp b/NouVeL/NVL.cpp index c52938c..0abdf13 100644 --- a/NouVeL/NVL.cpp +++ b/NouVeL/NVL.cpp @@ -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(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(content); }