fix url regex escaping

This commit is contained in:
Daniel Micay 2012-09-21 20:45:30 -04:00
parent 2cc3b1e706
commit 0af2466ea4
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
#define PORT "(?:\\:[[:digit:]]{1,5})?"
#define SCHEME "(?:[[:alpha:]][+-.[:alnum:]]*:)"
#define USERPASS USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?"
#define URLPATH "(?:/[[:alnum:]$-_.+!*'(),;/?:@&=]*)"
#define URLPATH "(?:/[[:alnum:]\\Q$-_.+!*'(),;/?:@&=\\E]*)"
const char * const url_regex = SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH;