[gnome-calendar] utils: better regext to match urls



commit 37624104cb3eece13a2b654e0427321129c74eba
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Mar 30 23:42:34 2015 -0300

    utils: better regext to match urls

 src/gcal-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-utils.c b/src/gcal-utils.c
index 52fa4c7..d93ad74 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);
 
   /*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]