add method to check a git url

This commit is contained in:
Hylke Bons 2010-05-13 21:29:21 +01:00
parent 161fcd1ec3
commit 04a9879bc3

View file

@ -20,6 +20,7 @@ using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
namespace SparkleShare {
@ -97,7 +98,7 @@ namespace SparkleShare {
}
public static bool IsGitUrl (string Url) {
return false;
return Regex.Match (Url, @"^(ssh://|git://)*(/|:)*").Success;
}
}