add method to check a git url
This commit is contained in:
parent
161fcd1ec3
commit
04a9879bc3
|
@ -20,6 +20,7 @@ using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsGitUrl (string Url) {
|
public static bool IsGitUrl (string Url) {
|
||||||
return false;
|
return Regex.Match (Url, @"^(ssh://|git://)*(/|:)*").Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue