Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
url: fix the regex for simple url parser for udp://@ syntax
  • Loading branch information
perexg committed Nov 14, 2015
1 parent 52730c5 commit 82776a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url.c
Expand Up @@ -145,7 +145,7 @@ urlparse_done( void )
#define UC "[a-z0-9_\\.!£$%^&-]"
#define PC UC
#define HC "[a-z0-9\\.-]"
#define URL_RE "^([A-Za-z]+)://(("UC"+)(:("PC"+))?@)?("HC"+)(:([0-9]+))?(/[^\\?]*)?(.([^#]*))?(#(.*))?"
#define URL_RE "^([A-Za-z]+)://(("UC"+)(:("PC"+))?@|@)?("HC"+)(:([0-9]+))?(/[^\\?]*)?(.([^#]*))?(#(.*))?"

static regex_t *urlparse_exp = NULL;

Expand Down

0 comments on commit 82776a4

Please sign in to comment.