mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-20 22:14:34 -04:00
New: Loads of Backend Updates to Clients and Indexers
This commit is contained in:
@@ -22,9 +22,14 @@ namespace NzbDrone.Common.Extensions
|
||||
return "[NULL]";
|
||||
}
|
||||
|
||||
public static string FirstCharToLower(this string input)
|
||||
{
|
||||
return input.First().ToString().ToLower() + input.Substring(1);
|
||||
}
|
||||
|
||||
public static string FirstCharToUpper(this string input)
|
||||
{
|
||||
return input.First().ToString().ToUpper() + string.Join("", input.Skip(1));
|
||||
return input.First().ToString().ToUpper() + input.Substring(1);
|
||||
}
|
||||
|
||||
public static string Inject(this string format, params object[] formattingArgs)
|
||||
@@ -65,6 +70,7 @@ namespace NzbDrone.Common.Extensions
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
public static string Join(this IEnumerable<string> values, string separator)
|
||||
{
|
||||
return string.Join(separator, values);
|
||||
@@ -144,5 +150,10 @@ namespace NzbDrone.Common.Extensions
|
||||
{
|
||||
return CamelCaseRegex.Replace(input, match => " " + match.Value);
|
||||
}
|
||||
|
||||
public static bool ContainsIgnoreCase(this IEnumerable<string> source, string value)
|
||||
{
|
||||
return source.Contains(value, StringComparer.InvariantCultureIgnoreCase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user