Normalize REGEX will remove more words and will leave digits for now.

This commit is contained in:
Mark McDowall 2011-04-22 17:20:58 -07:00
commit 86e709e922
2 changed files with 7 additions and 4 deletions

View file

@ -34,7 +34,7 @@ namespace NzbDrone.Core
RegexOptions.Compiled),
};
private static readonly Regex NormalizeRegex = new Regex(@"((\s|^)the(\s|$))|((\s|^)and(\s|$))|[^a-z]",
private static readonly Regex NormalizeRegex = new Regex(@"((^|\W)(a|an|the|and|or|of)($|\W))|\W",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
/// <summary>