changeset 35:7d07fcb9c616

fix 44ffbd056f33
author mikanbako <maoutwo@gmail.com>
date Sat, 10 May 2008 23:08:16 +0900
parents 44ffbd056f33
children ae1d059fa6fe
files pidgin-twitter.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Sat May 10 20:18:20 2008 +0900
+++ b/pidgin-twitter.c	Sat May 10 23:08:16 2008 +0900
@@ -476,7 +476,8 @@
     regp[PSEUDO]    = g_regex_new(
         "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)",
         G_REGEX_RAW, 0, NULL);
-    regp[SENDER_WITH_LINK] = g_regex_new("@<a href=.+?>([A-Za-z0-9_]+?)</a>", 0, 0, NULL);
+    regp[SENDER_WITH_LINK] = g_regex_new(
+        "@(?:<font .+?>)?<a href=.+?>([A-Za-z0-9_]+?)</a>(?:</font>)?", 0, 0, NULL);
 
     /* attach counter to the existing twitter window*/
     gboolean enabled = purple_prefs_get_bool(OPT_COUNTER);