mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
SortHelper.SkipArticles will no longer bomb when a null is passed.
Added tests for SkipArticles.
This commit is contained in:
parent
33930534c2
commit
430fb9aead
2 changed files with 44 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue