1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 20:52:16 -05:00

Prev called anything a URL! Reverted but slight DOMAIN change.

This commit is contained in:
RichardHitt 2013-01-15 13:19:29 -08:00
parent d5fbea3411
commit bb617ccacd

View File

@ -333,10 +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-z0-9]*[a-z0-9]))\\."
#define TLD "([a-z][-a-z0-9]*[a-z0-9])"
#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 ")*" TLD ")" "|" IPADDR ")"
#define HOST "(" DOMAIN TLD "|" IPADDR ")"
#define OPT_PORT "(:[1-9][0-9]{0,4})?"
GRegex *