made some of useless exceptions to calm down.

This commit is contained in:
kay.one 2013-07-04 22:16:49 -07:00
parent cdcf2767fc
commit 2d41ebcc78
3 changed files with 7 additions and 9 deletions

View file

@ -10,11 +10,6 @@ namespace NzbDrone.Common
return string.Format(format, formattingArgs);
}
public static string Inject(this string format, params string[] formattingArgs)
{
return string.Format(format, formattingArgs.Cast<object>());
}
private static readonly Regex InvalidCharRegex = new Regex(@"[^a-z0-9\s-]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex InvalidSearchCharRegex = new Regex(@"[^a-z0-9\s-\.]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex CollapseSpace = new Regex(@"\s+", RegexOptions.Compiled | RegexOptions.IgnoreCase);