BUG: fixed an incomplete regexp

This commit is contained in:
Philippe Pebay 2007-12-06 16:43:11 -05:00
parent 5d0f88ae22
commit 836e595fcc
1 changed files with 2 additions and 2 deletions

View File

@ -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