fix regex

This commit is contained in:
Hylke Bons 2010-05-13 23:44:16 +01:00
parent b3c68e4ac8
commit 2ad238c1ff
2 changed files with 10 additions and 11 deletions

View file

@ -54,15 +54,15 @@ namespace SparkleShare {
Label RemoteUrlLabel = new Label ("Remote address: ");
string [] DefaultUrls = new string [4] { "ssh://git@github.com/",
"ssh://git@git.gnome.org/",
"ssh://git@fedorahosted.org/",
"ssh://git@gitorious.org/" };
string [] DefaultUrls = new string [4] { "ssh://git@github.com",
"ssh://git@git.gnome.org",
"ssh://git@fedorahosted.org",
"ssh://git@gitorious.org" };
RemoteUrlCombo = new ComboBoxEntry (DefaultUrls);
Label RemoteUrlExample = new Label ("<span size='small'><i>Example: " +
"ssh://git@github.com/.</i></span>");
"ssh://git@github.com.</i></span>");
RemoteUrlExample.UseMarkup = true;
RemoteUrlExample.SetAlignment (0, 0);
RemoteUrlLabel.Xalign = 1;
@ -129,11 +129,11 @@ namespace SparkleShare {
Process.StartInfo.WorkingDirectory =
SparklePaths.SparkleTmpPath;
Process.StartInfo.Arguments = "clone " +
RepoRemoteUrl + " " +
RepoName;
Process.StartInfo.Arguments =
"clone " + SparkleHelpers.CombineMore (RepoRemoteUrl, RepoName);
Console.WriteLine (Process.StartInfo.Arguments);
Process.Start ();
// Process.Start ();
Process.Exited += delegate {
Directory.Move (
SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath,

View file

@ -87,7 +87,6 @@ namespace SparkleShare {
return NewPath;
}
public static IconTheme SparkleTheme = new IconTheme ();
// Looks up an icon from the system's theme
@ -98,7 +97,7 @@ namespace SparkleShare {
}
public static bool IsGitUrl (string Url) {
return Regex.Match (Url, @"[a-z]+://.+(/|:).+").Success;
return Regex.Match (Url, @"[a-z]+://(.)+").Success;
}
}