Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
url: regex parser - accept underline as part of the hostname, fixes #…
…4102
  • Loading branch information
perexg committed Nov 28, 2016
1 parent 9c2cfc6 commit d233fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url.c
Expand Up @@ -144,7 +144,7 @@ urlparse_done( void )
// TODO: does not support ipv6
#define UC "[a-z0-9_\\.!£$%^&-]"
#define PC UC
#define HC "[a-z0-9\\.-]"
#define HC "[a-z0-9_\\.-]"
#define URL_RE "^([A-Za-z]+)://(("UC"+)(:("PC"+))?@|@)?("HC"+)(:([0-9]+))?(/[^\\?]*)?(.([^#]*))?(#(.*))?"

static regex_t *urlparse_exp = NULL;
Expand Down

0 comments on commit d233fae

Please sign in to comment.