ENH: Handle ^ as [^fu]
This commit is contained in:
parent
add486e818
commit
8540b88e69
|
@ -84,7 +84,7 @@ std::string cmGlob::ConvertExpression(const std::string& expr)
|
||||||
else if ( c == '[' )
|
else if ( c == '[' )
|
||||||
{
|
{
|
||||||
std::string::size_type j = i;
|
std::string::size_type j = i;
|
||||||
if ( j < n && expr[j] == '!' )
|
if ( j < n && ( expr[j] == '!' || expr[j] == '^' ) )
|
||||||
{
|
{
|
||||||
j = j+1;
|
j = j+1;
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ std::string cmGlob::ConvertExpression(const std::string& expr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = j+1;
|
i = j+1;
|
||||||
if ( stuff[0] == '!' )
|
if ( stuff[0] == '!' || stuff[0] == '^' )
|
||||||
{
|
{
|
||||||
stuff = '^' + stuff.substr(1);
|
stuff = '^' + stuff.substr(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue