Tags can also contain a .
[debian/pino.git] / debian / patches / 006_improve-url-regex.diff
index a6c1520..aea10eb 100644 (file)
@@ -7,7 +7,7 @@ Bug: http://code.google.com/p/pino-twitter/issues/detail?id=277
 +++ b/src/template.vala
 @@ -62,7 +62,7 @@
                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("((http|https|ftp)://([\\S]+))"); //need something better
 +              urls = new Regex("((https?|ftp)://([A-Za-z0-9+&@#/%?=~_|!:,.;-]*)([A-Za-z0-9+&@#/%=~_|$]))"); // still needs to be improved for urls containing () such as wikipedia