From 37624104cb3eece13a2b654e0427321129c74eba Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 30 Mar 2015 23:42:34 -0300 Subject: [PATCH] utils: better regext to match urls --- src/gcal-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-utils.c b/src/gcal-utils.c index 52fa4c72..d93ad74c 100644 --- a/src/gcal-utils.c +++ b/src/gcal-utils.c @@ -647,7 +647,7 @@ uri_get_fields (const gchar *uri, match = NULL; valid = FALSE; - regex = g_regex_new ("([a-zA-Z0-9\\+\\.\\-]*):\\/\\/{0,1}([-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b)([-a-zA-Z0-9@:%_\\+.//=]*)", + regex = g_regex_new ("([a-zA-Z0-9\\+\\.\\-]*:\\/\\/){0,1}([-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b)([-a-zA-Z0-9@:%_\\+.//=]*)", G_REGEX_CASELESS, 0, NULL); /*