diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-21 17:46:47 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-21 17:46:47 (GMT) |
commit | 8540b88e69d0812be903fac3fbd0c8a18e595a7a (patch) | |
tree | 31923e55803228e6a4f40ff1a5a969aa0257e688 /Source/cmGlob.cxx | |
parent | add486e818dea4efb3941a4f8b0e485dd5c28580 (diff) | |
download | CMake-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.cxx | 4 |
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); } |