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(); }