From 836e595fccb25f42ca416a4975c3dcdf81215efd Mon Sep 17 00:00:00 2001 From: Philippe Pebay Date: Thu, 6 Dec 2007 16:43:11 -0500 Subject: BUG: fixed an incomplete regexp --- Source/kwsys/SystemTools.cxx | 4 ++-- 1 file 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 @@ -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 -- cgit v0.12