summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Pebay <pppebay@sandia.gov>2007-12-06 21:43:11 (GMT)
committerPhilippe Pebay <pppebay@sandia.gov>2007-12-06 21:43:11 (GMT)
commit836e595fccb25f42ca416a4975c3dcdf81215efd (patch)
tree1c2d76aafa3797ce68c09e4ef5bee5d1a67e3ea4
parent5d0f88ae2267573627442a10a27419e282188e20 (diff)
downloadCMake-836e595fccb25f42ca416a4975c3dcdf81215efd.zip
CMake-836e595fccb25f42ca416a4975c3dcdf81215efd.tar.gz
CMake-836e595fccb25f42ca416a4975c3dcdf81215efd.tar.bz2
BUG: fixed an incomplete regexp
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index edf360e..1248f29 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -78,7 +78,7 @@
#endif
#define VTK_URL_PROTOCOL_REGEX "([a-zA-Z0-9]*)://(.*)"
-#define VTK_URL_REGEX "([a-zA-Z0-9]*)://(([A-Za-z]+)(:([^:@]+))?@)?([^:@/]+)(:([0-9]+))?/(.+)?";
+#define VTK_URL_REGEX "([a-zA-Z0-9]*)://(([A-Za-z]+)(:([^:@]+))?@)?([^:@/]+)(:([0-9]+))?/(.+)?"
#ifdef _MSC_VER
#include <sys/utime.h>
@@ -4284,7 +4284,7 @@ bool SystemTools::ParseURL( const kwsys_stl::string& URL,
kwsys_stl::string& dataport,
kwsys_stl::string& database )
{
- kwsys::RegularExpression urlRe( VTK_URL_PROTOCOL_REGEX );
+ kwsys::RegularExpression urlRe( VTK_URL_REGEX );
if ( ! urlRe.find( URL ) ) return false;
// match 0 URL