mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
fix<GitURL>: allow '.' in repository name. see issue #14
This commit is contained in:
parent
0585574d87
commit
80aa468b08
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ namespace SourceGit.Views.Validations {
|
||||||
|
|
||||||
public class GitURL : ValidationRule {
|
public class GitURL : ValidationRule {
|
||||||
private static readonly Regex[] VALID_FORMATS = new Regex[] {
|
private static readonly Regex[] VALID_FORMATS = new Regex[] {
|
||||||
new Regex(@"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-]+\.git$"),
|
new Regex(@"^http[s]?://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-\.]+\.git$"),
|
||||||
new Regex(@"^[\w\-]+@[\w\.\-]+(\:[0-9]+)?:[\w\-]+/[\w\-]+\.git$"),
|
new Regex(@"^[\w\-]+@[\w\.\-]+(\:[0-9]+)?:[\w\-]+/[\w\-\.]+\.git$"),
|
||||||
new Regex(@"^ssh://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-]+\.git$"),
|
new Regex(@"^ssh://([\w\-]+@)?[\w\.\-]+(\:[0-9]+)?/[\w\-]+/[\w\-\.]+\.git$"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static bool IsSSH(string url) {
|
public static bool IsSSH(string url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue