[gnome-calendar] utils: Fix Google Meet URL template



commit 7741443c03f801468a41f8f06313799afcba660c
Author: Markus Hoffmann <markus campfire-solutions com>
Date:   Wed Oct 27 11:30:59 2021 +0200

    utils: Fix Google Meet URL template
    
    The Google Meet URL is extracted from the Calendar Event Notes by using a substring with a fixed length. 
This length is too short by 1 character.
    
    In order to get the right URL the substring needs to be 1 character longer. In order to match the Google 
Meet URL add an "x" in the given URL pattern.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/749

 src/utils/gcal-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/utils/gcal-utils.c b/src/utils/gcal-utils.c
index e57c064d..90778f54 100644
--- a/src/utils/gcal-utils.c
+++ b/src/utils/gcal-utils.c
@@ -1322,7 +1322,7 @@ gcal_utils_extract_google_section (const gchar  *description,
                                      first_delimiter - description - delimiter_len,
                                      "https://meet.google.com";);
       if (meet_url_start)
-        meeting_url = g_utf8_substring (meet_url_start, 0, strlen ("https://meet.google.com/xxx-xxx-xxx";));
+        meeting_url = g_utf8_substring (meet_url_start, 0, strlen ("https://meet.google.com/xxx-xxxx-xxx";));
     }
 
 out:


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