Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
url_regex: Add missing : in <username>:<password>
Browse files Browse the repository at this point in the history
  • Loading branch information
boblehest authored and jelly committed Oct 14, 2017
1 parent 68b92d3 commit 4f558cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url_regex.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f558cd

Please sign in to comment.