Allow / in the regexes for search/groups
authorJulien Valroff <julien@kirya.net>
Mon, 14 Jun 2010 04:43:51 +0000 (06:43 +0200)
committerJulien Valroff <julien@kirya.net>
Mon, 14 Jun 2010 04:43:51 +0000 (06:43 +0200)
debian/patches/003_improve-regex.diff

index 476925c..57ceef4 100644 (file)
@@ -12,8 +12,8 @@ Forwarded: yes
 -              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
-+              tags = new Regex("(^|\\s|['+&!\\(-])#([A-Za-z0-9_.-\\p{Latin}\\p{Greek}]+)");
-+              groups = new Regex("(^|\\s|['+&!\\(-])!([A-Za-z0-9_]+)"); //for identi.ca groups
++              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
                
                // characters must be cleared to know direction of text