Fix commit 3f5fb3a5aa8eb893e84bc0241d0772ae8ac61866
authorJulien Valroff <julien@kirya.net>
Tue, 8 Jun 2010 18:44:27 +0000 (20:44 +0200)
committerJulien Valroff <julien@kirya.net>
Tue, 8 Jun 2010 18:44:27 +0000 (20:44 +0200)
debian/patches/003_fix-search-regex.diff
debian/patches/006_improve-url-regex.diff
debian/patches/007_improve-group-regex.diff

index 3bdb7d8..06c8e88 100644 (file)
@@ -10,7 +10,7 @@ Forwarded: yes
                //compile regex
                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}]+)");
++              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
                
index aea10eb..4bb6b11 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
index 5759823..1e62e7e 100644 (file)
@@ -7,7 +7,7 @@ Forwarded: no
 @@ -61,7 +61,7 @@
                //compile regex
                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
 +              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