url_regex.hh: host is optional (thus file:///)
This commit is contained in:
parent
0c52014f77
commit
fdd1ba0ce1
|
@ -5,7 +5,7 @@
|
||||||
#define USERCHARS_CLASS "[" USERCHARS "]"
|
#define USERCHARS_CLASS "[" USERCHARS "]"
|
||||||
#define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.:/!%$^*&~\"#'\\E]"
|
#define PASSCHARS_CLASS "[-[:alnum:]\\Q,?;.:/!%$^*&~\"#'\\E]"
|
||||||
#define HOSTCHARS_CLASS "[-[:alnum:]]"
|
#define HOSTCHARS_CLASS "[-[:alnum:]]"
|
||||||
#define HOST HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*"
|
#define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?"
|
||||||
#define PORT "(?:\\:[[:digit:]]{1,5})?"
|
#define PORT "(?:\\:[[:digit:]]{1,5})?"
|
||||||
#define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,;@&=?/~#%\\E]"
|
#define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,;@&=?/~#%\\E]"
|
||||||
#define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\E]"
|
#define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\E]"
|
||||||
|
|
Loading…
Reference in New Issue