diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-01 13:03:52 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-01 13:03:52 +0000 |
commit | d5df15f1fec2971e05a9352585414d92580b7ab1 (patch) | |
tree | 5a6604fbcac2a7a2d865254be18c850e53cac8b2 /src/util.c | |
parent | 895b037e56d11c260550dbf85b135de1aaa89b53 (diff) |
escape \d+ in host regex
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |