mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 05:16:34 +02:00
SortHelper.SkipArticles will no longer bomb when a null is passed.
Added tests for SkipArticles.
This commit is contained in:
@@ -9,6 +9,9 @@ namespace NzbDrone.Core.Helpers
|
||||
{
|
||||
public static string SkipArticles(string input)
|
||||
{
|
||||
if (String.IsNullOrEmpty(input))
|
||||
return String.Empty;
|
||||
|
||||
var articles = new List<string> { "The ", "An ", "A " };
|
||||
|
||||
foreach (string article in articles)
|
||||
|
Reference in New Issue
Block a user