blob: 91d60c71b4335d9d1b53e2606cce023373a9d5a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/src/mconnect/utils.vala b/src/mconnect/utils.vala
index 1d7f5cb..83e35bf 100644
--- a/src/mconnect/utils.vala
+++ b/src/mconnect/utils.vala
@@ -160,7 +160,7 @@ namespace Utils {
// regex taken from SO
// uncrustify breaks the regex, so *INDENT-OFF*
- Regex r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+,.~#?&\/=]*)/;
+ GLib.Regex r = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+,.~#?&\/=]*)/;
// *INDENT-ON*
MatchInfo mi;
@@ -180,7 +180,7 @@ namespace Utils {
debug ("no match");
}
return matches;
- } catch (RegexError e) {
+ } catch (GLib.RegexError e) {
warning ("failed to compile regex: %s", e.message);
return {};
}
|