Oops. didn't get the DOMAIN slight change last time. Here it is now.

This commit is contained in:
RichardHitt 2013-01-15 13:26:11 -08:00
parent bb617ccacd
commit 7bc0e017f6
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ do_an_re(const char *word,int *start, int *end, int *type)
}
/* Miscellaneous description --- */
#define DOMAIN "[-a-z0-9]+(\\.[-a-z0-9]+)*\\."
#define DOMAIN "[a-z0-9][-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 ")"