diff --git a/noson/src/private/tokenizer.h b/noson/src/private/tokenizer.h index 053c18c..548aac9 100644 --- a/noson/src/private/tokenizer.h +++ b/noson/src/private/tokenizer.h @@ -40,7 +40,7 @@ inline void __tokenize(const std::string& str, const char *delimiters, std::vect } while (trimnull && str.find_first_of(delimiters, pb) == pb); } - if (!trimnull || pa < (str.size() - 1)) + if (!trimnull || pa < str.size()) tokens.push_back(str.substr(pa)); }