summaryrefslogtreecommitdiffstats
path: root/Source/cmGlob.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlob.cxx')
-rw-r--r--Source/cmGlob.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx
index 2ac32c7..136673f 100644
--- a/Source/cmGlob.cxx
+++ b/Source/cmGlob.cxx
@@ -84,7 +84,7 @@ std::string cmGlob::ConvertExpression(const std::string& expr)
else if ( c == '[' )
{
std::string::size_type j = i;
- if ( j < n && expr[j] == '!' )
+ if ( j < n && ( expr[j] == '!' || expr[j] == '^' ) )
{
j = j+1;
}
@@ -116,7 +116,7 @@ std::string cmGlob::ConvertExpression(const std::string& expr)
}
}
i = j+1;
- if ( stuff[0] == '!' )
+ if ( stuff[0] == '!' || stuff[0] == '^' )
{
stuff = '^' + stuff.substr(1);
}