From 8540b88e69d0812be903fac3fbd0c8a18e595a7a Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 21 Jul 2003 13:46:47 -0400 Subject: [PATCH] ENH: Handle ^ as [^fu] --- Source/cmGlob.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmGlob.cxx b/Source/cmGlob.cxx index 2ac32c78b..136673f20 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); }