url: minor correction based on suggestion from MinGyoon

Fixes #2012
This commit is contained in:
Adam Sutton 2014-03-21 14:30:31 +00:00
parent bd78123b95
commit 85e01365b7

View file

@ -98,7 +98,7 @@ urlparse ( const char *str, url_t *url )
#define UC "[a-z0-9_\\-\\.!£$%^&]"
#define PC UC
#define HC "[a-z0-9\\-\\.]"
#define URL_RE "^(\\w+)://(("UC"+)(:("PC"+))?@)?("HC"+)(:([0-9]+))?(/.*)?"
#define URL_RE "^([A-Za-z)://(("UC"+)(:("PC"+))?@)?("HC"+)(:([0-9]+))?(/.*)?"
int