mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Default Log view uses client operations, added all logs view that uses paging (No support for sorting or filtering).
This commit is contained in:
23
NzbDrone.Core/Helpers/SortHelper.cs
Normal file
23
NzbDrone.Core/Helpers/SortHelper.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Helpers
|
||||
{
|
||||
public class SortHelper
|
||||
{
|
||||
public static string SkipArticles(string input)
|
||||
{
|
||||
var articles = new List<string> { "The ", "An ", "A " };
|
||||
|
||||
foreach (string article in articles)
|
||||
{
|
||||
if (input.ToLower().StartsWith(article, StringComparison.InvariantCultureIgnoreCase))
|
||||
return input.Substring(article.Length).Trim();
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user