Tags can also contain a .
[debian/pino.git] / debian / patches / 006_improve-url-regex.diff
index 3e39853..aea10eb 100644 (file)
@@ -7,10 +7,10 @@ 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("#([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
++              urls = new Regex("((https?|ftp)://([A-Za-z0-9+&@#/%?=~_|!:,.;-]*)([A-Za-z0-9+&@#/%=~_|$]))"); // still needs to be improved for urls containing () such as wikipedia
                
                // characters must be cleared to know direction of text
                clear_notice = new Regex("[: \n\t\r♻♺]+|@[^ ]+");