Fixed empty detection
This commit is contained in:
parent
6604c1554e
commit
7aaf55c1ea
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue