From 0c52014f77ef400a5101bdf26cfa4fc2b3a617bd Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 21 Sep 2012 17:05:11 -0400 Subject: [PATCH] url_regex.hh: make scheme follow the standard --- url_regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_regex.hh b/url_regex.hh index 2944081..08ea9f1 100644 --- a/url_regex.hh +++ b/url_regex.hh @@ -9,7 +9,7 @@ #define PORT "(?:\\:[[:digit:]]{1,5})?" #define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,;@&=?/~#%\\E]" #define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\E]" -#define SCHEME "(?:news:|telnet:|nntp:|file:\\/|https?:|ftps?:|sftp:|webcal:)" +#define SCHEME "(?:[[:alpha:]][+-.[:alnum:]]*:)" #define USERPASS USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?" #define URLPATH "(?:(/" PATHCHARS_CLASS "+(?:[(]" PATHCHARS_CLASS "*[)])*" PATHCHARS_CLASS "*)*" PATHTERM_CLASS ")?"