actually technically that last one didn't match og behaviour even

This commit is contained in:
HJfod 2024-07-29 22:06:14 +03:00
parent 8de28d1e2a
commit a533b5f51a

View file

@ -84,7 +84,7 @@ Result<ccColor3B> colorForIdentifier(std::string const& tag) {
}
// Support the old form of <carbitaryletters hex>
else if (tag.find(' ') != std::string::npos) {
return cc3bFromHexString(tag.substr(tag.find(' ') + 1));
return cc3bFromHexString(string::trim(tag.substr(tag.find(' ') + 1)));
}
else {
auto colorText = tag.substr(1);