trim spaces on labels

This commit is contained in:
Benji Dial 2023-05-30 00:38:13 -04:00
parent 28e855f542
commit fbabd9f801

View file

@ -352,7 +352,7 @@ namespace lib94 {
if (colon == std::string::npos) if (colon == std::string::npos)
break; break;
std::string label = line.substr(0, colon); std::string label = trim_spaces(line.substr(0, colon));
line = line.substr(colon + 1); line = line.substr(colon + 1);
if (!valid_label(label)) if (!valid_label(label))