[gnome-calendar] utils: better regext to match urls
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] utils: better regext to match urls
- Date: Mon, 25 May 2015 16:53:44 +0000 (UTC)
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]