Fixed: Parsing similar author names with common words at end

(cherry picked from commit 0fe24539625f8397dfb63d4618611db99c3c137a)
This commit is contained in:
Mark McDowall
2021-03-07 16:53:56 -08:00
committed by Bogdan
parent 50be87e5a4
commit 7d30c7d1ea
2 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ namespace NzbDrone.Core.Parser
new Regex(@"^b00bs$", RegexOptions.Compiled | RegexOptions.IgnoreCase)
};
private static readonly RegexReplace NormalizeRegex = new RegexReplace(@"((?:\b|_)(?<!^)(a(?!$)|an|the|and|or|of)(?:\b|_))|\W|_",
private static readonly RegexReplace NormalizeRegex = new RegexReplace(@"((?:\b|_)(?<!^)(a(?!$)|an|the|and|or|of)(?!$)(?:\b|_))|\W|_",
string.Empty,
RegexOptions.IgnoreCase | RegexOptions.Compiled);