Tags can also contain a .
[debian/pino.git] / debian / patches / 003_fix-search-regex.diff
index 9344fdd..3bdb7d8 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