BUG: make sure regex match has a string to match
This commit is contained in:
parent
5ab173b5ea
commit
d241158885
|
@ -717,8 +717,10 @@ bool ElementCombinationGenerator::GenerateTag(const cmStdString& element)
|
|||
if(regex.find(element))
|
||||
{
|
||||
m_Tag = "_";
|
||||
if(regex.match(1) == "long ")
|
||||
if(regex.start(1) > 0 && regex.match(1) == "long ")
|
||||
{
|
||||
m_Tag.append("l");
|
||||
}
|
||||
m_Tag.append(regex.match(2));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue