ENH: Handle ^ as [^fu]

This commit is contained in:
Andy Cedilnik 2003-07-21 13:46:47 -04:00
parent add486e818
commit 8540b88e69
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }