Remove & from tags as they cause issue when displaying \
authorJulien Valroff <julien@kirya.net>
Mon, 16 Aug 2010 12:50:10 +0000 (14:50 +0200)
committerJulien Valroff <julien@kirya.net>
Mon, 16 Aug 2010 12:50:10 +0000 (14:50 +0200)
debian/patches/002_allow-current-user-info.diff

index ce78829..08d4574 100644 (file)
@@ -26,7 +26,16 @@ Forwarded: yes
                        <span class="date">{{time}}</span>
 --- a/src/template.vala
 +++ b/src/template.vala
-@@ -281,6 +281,7 @@
+@@ -66,7 +66,7 @@
+               urls = new Regex("((http|https|ftp)://([\\S]+))"); //need something better
+               */
+               nicks = new Regex("(^|\\s|['\"+&!/\\(-])@([A-Za-z0-9_]+)");
+-              tags = new Regex("(^|\\s|['\"+&!/\\(-])#([A-Za-z0-9_.-\\p{Latin}\\p{Greek}]+)");
++              tags = new Regex("(^|\\s|['\"+!/\\(-])#([A-Za-z0-9_.-\\p{Latin}\\p{Greek}]+)");
+               groups = new Regex("(^|\\s|['\"+&!/\\(-])!([A-Za-z0-9_]+)"); //for identi.ca groups
+               urls = new Regex("((https?|ftp)://([A-Za-z0-9+&@#/%?=~_|!:,.;-]*)([A-Za-z0-9+&@#/%=~_|$]))"); // still needs to be improved for urls containing () such as wikipedia's
+               
+@@ -287,6 +287,7 @@
                                map["id"] = i.id;
                                map["time"] = time;
                                map["by_who"] = by_who;