Fixed empty detection

This commit is contained in:
WolverinDEV 2020-02-02 18:38:20 +01:00
parent 6604c1554e
commit 7aaf55c1ea
1 changed files with 2 additions and 5 deletions

View File

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