From c5263e771b4705d31c0fb56de18445beee680eb1 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 20 Nov 2010 12:08:01 +0000 Subject: [PATCH] [controller] Fix bad regular expression for email --- SparkleShare/SparkleController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index 7ee72db9..1c6ef117 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -139,8 +139,8 @@ namespace SparkleShare { public List Folders { - get - { + get { + List folders = new List (); foreach (SparkleRepo repo in Repositories) @@ -568,7 +568,7 @@ namespace SparkleShare { if (file_name.StartsWith ("sparkleshare.") && file_name.EndsWith (".key")) { - Regex regex = new Regex (@"^sparkleshare\.(*)\.key$"); + Regex regex = new Regex (@"sparkleshare\.(.+)\.key"); Match match = regex.Match (file_name); if (match.Success)