Permalink
Browse files

fixing url regexp

  • Loading branch information...
1 parent d414bed commit 5ab5aba61021a75447de79e52f50ff419448f3c5 @lzap committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/matchers.vala
View
@@ -92,7 +92,7 @@ public class UrlMatcher : GLib.Object, IMatcher
}
public string regex() {
- return "(((file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\!\\*\\(\\),;:@&=\\?/~\\#\\%]*[^]'\\.}>\\) ,\\\"]";
+ return """(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?""";
}
public string matched_filename(string[] groups) {

0 comments on commit 5ab5aba

Please sign in to comment.