From 7db56d7605e2386e82b09619b5a71ed1b8270168 Mon Sep 17 00:00:00 2001 From: Rohan Chandi Date: Tue, 5 Mar 2024 13:29:41 +0100 Subject: [PATCH] fix: swap trailing determiners at the end of titles fixes #9815.\n\n Some files have their , A or , The at the end of the file to prevent alphabetical sorting clustering these titles together. This stops working when searching for files inside radarr as a cleaned title will have 'prestigethe' instead of 'theprestige'. --- src/NzbDrone.Common/Extensions/StringExtensions.cs | 14 ++++++++++++++ .../ParserTests/NormalizeTitleFixture.cs | 12 ++++++++++++ src/NzbDrone.Core/Parser/Parser.cs | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Extensions/StringExtensions.cs b/src/NzbDrone.Common/Extensions/StringExtensions.cs index 8e327cd88..9cdd5bd63 100644 --- a/src/NzbDrone.Common/Extensions/StringExtensions.cs +++ b/src/NzbDrone.Common/Extensions/StringExtensions.cs @@ -12,6 +12,7 @@ namespace NzbDrone.Common.Extensions public static class StringExtensions { private static readonly Regex CamelCaseRegex = new Regex("(?