From fdd1ba0ce12b09d99dab173586b81c3d6fe0424c Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 21 Sep 2012 17:10:06 -0400 Subject: [PATCH] url_regex.hh: host is optional (thus file:///) --- url_regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_regex.hh b/url_regex.hh index 08ea9f1..816f6a8 100644 --- a/url_regex.hh +++ b/url_regex.hh @@ -5,7 +5,7 @@ #define USERCHARS_CLASS "[" USERCHARS "]" #define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.:/!%$^*&~\"#'\\E]" #define HOSTCHARS_CLASS "[-[:alnum:]]" -#define HOST HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*" +#define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?" #define PORT "(?:\\:[[:digit:]]{1,5})?" #define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,;@&=?/~#%\\E]" #define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\E]"