Fix previous patch
authorJulien Valroff <julien@kirya.net>
Sun, 23 May 2010 13:29:28 +0000 (15:29 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 23 May 2010 13:29:28 +0000 (15:29 +0200)
debian/patches/004_fix-search-regex.diff

index 6774c87..4185c01 100644 (file)
@@ -4,8 +4,8 @@ Bug: http://code.google.com/p/pino-twitter/issues/detail?id=141
 
 Index: pino/src/template.vala
 ===================================================================
---- pino.orig/src/template.vala        2010-05-23 15:20:25.000000000 +0200
-+++ pino/src/template.vala     2010-05-23 15:20:53.000000000 +0200
+--- pino.orig/src/template.vala        2010-05-23 15:26:40.000000000 +0200
++++ pino/src/template.vala     2010-05-23 15:29:14.000000000 +0200
 @@ -60,7 +60,7 @@
                
                //compile regex
@@ -15,3 +15,12 @@ Index: pino/src/template.vala
                groups = new Regex("(^|\\s)!([A-Za-z0-9_]+)"); //for identi.ca groups
                urls = new Regex("((http|https|ftp)://([\\S]+))"); //need something better
                
+@@ -400,7 +400,7 @@
+               }
+               
+               result = nicks.replace(result, -1, 0, "\\1@<a class='re_nick' href='userinfo://\\2'>\\2</a>");
+-              result = tags.replace(result, -1, 0, "<a class='tags' href='%s\\1'>\\1</a>".printf(search_url));
++              result = tags.replace(result, -1, 0, "\\1#<a class='tags' href='%s\\2'>\\2</a>".printf(search_url));
+               
+               if(service == "identi.ca") //for identi.ca only
+                       result = groups.replace(result, -1, 0, "\\1!<a class='tags' href='http://identi.ca/group/\\2'>\\2</a>");