summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-01 13:03:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-01 13:03:52 +0000
commitd5df15f1fec2971e05a9352585414d92580b7ab1 (patch)
tree5a6604fbcac2a7a2d865254be18c850e53cac8b2 /src/util.c
parent895b037e56d11c260550dbf85b135de1aaa89b53 (diff)
escape \d+ in host regex
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 7cf6148..df10d00 100644
--- a/src/util.c
+++ b/src/util.c
@@ -53,7 +53,7 @@ void g_str_slist_free(GSList * list)
GRegex *trg_uri_host_regex_new(void)
{
- return g_regex_new("^[^:/?#]+:?//(?:www\\.|tracker\\.|\d+\\.)?([^/?#:]*)",
+ return g_regex_new("^[^:/?#]+:?//(?:www\\.|tracker\\.|\\d+\\.)?([^/?#:]*)",
G_REGEX_OPTIMIZE, 0, NULL);
}