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
This commit is contained in:
Markus Hoffmann
2021-10-28 13:59:13 +00:00
committed by Markus Hoffmann
parent 42c6f90276
commit 7741443c03
+1 -1
View File
@@ -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: