From 7aaf55c1ea95860f0e3e7e2e56cf5e13171b9a63 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 2 Feb 2020 18:38:20 +0100 Subject: [PATCH] Fixed empty detection --- src/query/command3.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/query/command3.h b/src/query/command3.h index 0efe837..590debe 100644 --- a/src/query/command3.h +++ b/src/query/command3.h @@ -154,16 +154,13 @@ namespace ts { result.append(this->_identifier); for(auto it = this->bulks.begin(); it != this->bulks.end(); it++) { - if(it->find(' ') == std::string::npos && !with_empty) continue; + if(it->find('=') == std::string::npos && !with_empty) continue; if(it != this->bulks.begin()) result.append(" |"); result.append(*it, 0, it->length() - 1); } - if(!with_empty && result.ends_with('|')) - this->builded = result.substr(0, result.length() - 1); - else - this->builded = result; + this->builded = result; return this->builded.value(); }