From f35bcc575078cde93e9e0be8d4cfcb59a4c5bd0f Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 24 Sep 2012 04:51:19 -0400 Subject: [PATCH] url_regex.hh: rfc 2396 adds tilde to unreserved --- url_regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_regex.hh b/url_regex.hh index ee9b395..42dbb84 100644 --- a/url_regex.hh +++ b/url_regex.hh @@ -9,7 +9,7 @@ #define PORT "(?:\\:[[:digit:]]{1,5})?" #define SCHEME "(?:[[:alpha:]][+-.[:alnum:]]*:)" #define USERPASS USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?" -#define URLPATH "(?:/[[:alnum:]\\Q$-_.+!*'(),;/?:@&=#%\\E]*)" +#define URLPATH "(?:/[[:alnum:]\\Q-_.!~*'();/?:@&=+$,#%\\E]*)" const char * const url_regex = SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH;