bB: normalize spaces in title

This commit is contained in:
kaso17
2016-12-11 16:12:47 +01:00
parent 1050157546
commit b4fafe2845
2 changed files with 7 additions and 2 deletions

View File

@@ -15,6 +15,11 @@ namespace Jackett.Utils
return s.Trim();
}
public static string NormalizeMultiSpaces(string s)
{
return new Regex(@"\s+").Replace(NormalizeSpace(s), " "); ;
}
public static string NormalizeNumber(string s)
{
var normalized = NormalizeSpace(s);