mirror of
https://github.com/reactos/CMake.git
synced 2025-02-18 02:28:05 +00:00
BUG: fixed an incomplete regexp
This commit is contained in:
parent
5d0f88ae22
commit
836e595fcc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user