[gnome-contacts] Nicer name for google profile links



commit 46fddce6d49b7329c31d9fee4d51addc17cb0ef4
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Jan 23 09:44:58 2012 +0100

    Nicer name for google profile links

 src/contacts-contact.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index a88a78d..6476b30 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -999,6 +999,9 @@ public class Contacts.Contact : GLib.Object  {
     if (/https?:\/\/twitter.com\/#!\/[a-zA-Z0-9]+$/.match(uri))
       return _("Twitter");
 
+    if (/https?:\/\/www.google.com\/profiles\/[0-9]+$/.match(uri))
+      return _("Google Profile");
+
     if (uri.ascii_ncasecmp ("http:", 5) == 0 ||
 	uri.ascii_ncasecmp ("https:", 5) == 0) {
       var start = uri.index_of (":");



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