From 4f558cd62d79abd78ec013ee78cc98232f226482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Lode?= Date: Sun, 30 Apr 2017 23:53:25 +0200 Subject: [PATCH] url_regex: Add missing : in : --- url_regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url_regex.hh b/url_regex.hh index 2ec6be8..eec1629 100644 --- a/url_regex.hh +++ b/url_regex.hh @@ -8,7 +8,7 @@ #define HOST "(?:" HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*)?" #define PORT "(?:\\:[[:digit:]]{1,5})?" #define SCHEME "(?:[[:alpha:]][+-.[:alnum:]]*:)" -#define USERPASS USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?" +#define USERPASS USERCHARS_CLASS "+(?:\\:" PASSCHARS_CLASS "+)?" #define URLPATH "(?:/[[:alnum:]\\Q-_.!~*'();/?:@&=+$,#%\\E]*)?" const char * const url_regex = SCHEME "//(?:" USERPASS "\\@)?" HOST PORT URLPATH;