Updated the file to match the correct programming style used in sparkleshare

This commit is contained in:
Konstantinos Vaggelakos 2011-10-07 01:10:57 +02:00
parent f715217ff0
commit 8d46eb4dda

View file

@ -1130,8 +1130,8 @@ namespace SparkleShare {
System.Windows.Forms.Application.Exit (); System.Windows.Forms.Application.Exit ();
// Also kill the SSH_AGENT // Also kill the SSH_AGENT
int pid = Int32.Parse(System.Environment.GetEnvironmentVariable("SSH_AGENT_PID")); int pid = Int32.Parse (System.Environment.GetEnvironmentVariable ("SSH_AGENT_PID"));
Process.GetProcessById(pid).Kill(); Process.GetProcessById (pid).Kill ();
#endif #endif
} }
@ -1139,7 +1139,7 @@ namespace SparkleShare {
// Checks to see if an email address is valid // Checks to see if an email address is valid
public bool IsValidEmail (string email) public bool IsValidEmail (string email)
{ {
Regex regex = new Regex(@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$", RegexOptions.IgnoreCase); Regex regex = new Regex (@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$", RegexOptions.IgnoreCase);
return regex.IsMatch (email); return regex.IsMatch (email);
} }