summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-15 13:19:29 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-15 13:19:29 -0800
commitbb617ccacd7fc46382d14034fdf0a8ccc34f8be3 (patch)
tree628e32e6b4bb9d9fba3751210bb28c9600c6ef79 /src
parentd5fbea3411d069cf8c0ae636518a7dc86dd692f6 (diff)
Prev called anything a URL! Reverted but slight DOMAIN change.
Diffstat (limited to 'src')
-rw-r--r--src/common/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/url.c b/src/common/url.c
index f3460aca..1f3277cd 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -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 *