summaryrefslogtreecommitdiffstats
path: root/Source/cmGlob.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-21 17:46:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-21 17:46:47 (GMT)
commit8540b88e69d0812be903fac3fbd0c8a18e595a7a (patch)
tree31923e55803228e6a4f40ff1a5a969aa0257e688 /Source/cmGlob.cxx
parentadd486e818dea4efb3941a4f8b0e485dd5c28580 (diff)
downloadCMake-8540b88e69d0812be903fac3fbd0c8a18e595a7a.zip
CMake-8540b88e69d0812be903fac3fbd0c8a18e595a7a.tar.gz
CMake-8540b88e69d0812be903fac3fbd0c8a18e595a7a.tar.bz2
ENH: Handle ^ as [^fu]
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);
}