changeset 231:a93a85623a92

identi.ca tag requires '-' to be stripped as well.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 29 Sep 2008 12:25:29 +0900
parents a73dae7d8d78
children 1c85aa4acb9d
files pidgin-twitter.c pidgin-twitter.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Sat Sep 27 18:47:59 2008 +0900
+++ b/pidgin-twitter.c	Mon Sep 29 12:25:29 2008 +0900
@@ -955,6 +955,7 @@
     else if(which == TAG_IDENTICA && service == identica_service) {
         gchar *match = g_match_info_fetch(match_info, 1);
         gchar *link = g_ascii_strdown(match, -1);
+        purple_str_strip_char(link, '-');
         purple_str_strip_char(link, '_');
         const gchar *format = TAG_FORMAT_IDENTICA;
         g_snprintf(sub, SUBST_BUF_SIZE, format, link, match);
--- a/pidgin-twitter.h	Sat Sep 27 18:47:59 2008 +0900
+++ b/pidgin-twitter.h	Mon Sep 29 12:25:29 2008 +0900
@@ -154,7 +154,7 @@
 #define P_IMAGE_TWITTER     "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>"
 #define P_IMAGE_WASSR       "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"
 #define P_IMAGE_IDENTICA    "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>"
-#define P_TAG_IDENTICA      "#([A-Za-z0-9_]+)"
+#define P_TAG_IDENTICA      "#([-A-Za-z0-9_]+)"
 #define P_SIZE_128_WASSR    "\\.128\\."
 
 /* twitter API specific macros */