~mhr3/unity-lens-files/fix-947856

« back to all changes in this revision

Viewing changes to src/url-checker.vala

  • Committer: Michal Hruby
  • Date: 2012-04-05 14:55:43 UTC
  • mfrom: (220.2.5 unity-lens-files)
  • Revision ID: michal.mhr@gmail.com-20120405145543-8w985bif5nlkm4wo
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
      mountable_icon = new ThemedIcon ("folder-remote").to_string ();
54
54
      
55
55
      try {
56
 
        web_regex = new Regex ("(http[s]{0,1}://.+){0,1}" +
57
 
                                "[a-zA-Z0-9\\-\\.]+\\." + TLD_REGEX + "$",
 
56
        web_regex = new Regex ("(http[s]?://.+)|" +
 
57
                                "([a-zA-Z0-9\\-\\.]+\\." +TLD_REGEX+ "\\b.*)",
58
58
                                RegexCompileFlags.OPTIMIZE);
59
59
        mountable_regex = new Regex ("(\\\\|(ftp|ssh|sftp|smb|dav)://).+");
60
60
      } catch (RegexError e) {