mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
BUG: make sure regex match has a string to match
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user