Oops. didn't get the DOMAIN slight change last time. Here it is now.
This commit is contained in:
parent
bb617ccacd
commit
7bc0e017f6
|
@ -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 ")"
|
||||
|
|
Loading…
Reference in New Issue