Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

112x comb2021 chcomp #799

Open
wants to merge 11 commits into
base: 112x-comb2021
Choose a base branch
from
6 changes: 5 additions & 1 deletion src/ChannelCompatibilityCheck.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ std::string ChannelCompatibilityCheck::nameForLabel(const char *label)
{
std::string ret(label);
for (std::vector<std::string>::const_iterator it = groups_.begin(), ed = groups_.end(); it != ed; ++it) {
if (ret.find(*it) != std::string::npos) { ret = *it; break; }
std::string search(*it);
std::string poi(*it);
size_t pos= search.find(":");
if ( pos !=std::string::npos) { search = it->substr(0,pos); poi= it->substr(pos+1) ; }
if (ret.find(search) != std::string::npos) { ret = poi; break; }
}
return ret;
}
Expand Down