[gnome-calendar/calendar-editor] utils: better regext to match urls
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] utils: better regext to match urls
- Date: Tue, 31 Mar 2015 02:42:48 +0000 (UTC)
commit 8e37a4cd5dbf5c4f53b9f0b474fa98c010e71b5c
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 e420135..049b202 100644
--- a/src/gcal-utils.c
+++ b/src/gcal-utils.c
@@ -644,7 +644,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]