mirror of
https://github.com/moparisthebest/hexchat
synced 2024-12-22 23:58:52 -05:00
Parse url according to rfc 1738: add separate define for TLD.
This commit is contained in:
parent
475eb9fcaa
commit
be2d100d2d
@ -333,9 +333,10 @@ do_an_re(const char *word,int *start, int *end, int *type)
|
||||
}
|
||||
|
||||
/* Miscellaneous description --- */
|
||||
#define DOMAIN "[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]+"
|
||||
#define DOMAIN "[-a-z0-9]+(\\.[-a-z0-9]+)*\\."
|
||||
#define TLD "[a-z][-a-z0-9]*[a-z]"
|
||||
#define IPADDR "[0-9]+(\\.[0-9]+){3}"
|
||||
#define HOST "(" DOMAIN "|" IPADDR ")"
|
||||
#define HOST "(" DOMAIN TLD "|" IPADDR ")"
|
||||
#define OPT_PORT "(:[1-9][0-9]{0,4})?"
|
||||
|
||||
GRegex *
|
||||
|
Loading…
Reference in New Issue
Block a user