mirror of https://github.com/Radarr/Radarr
Merge b8bd948d27
into f77e27bace
This commit is contained in:
commit
84b066bd2f
|
@ -65,6 +65,10 @@ namespace NzbDrone.Common.Extensions
|
|||
public static string RemoveAccent(this string text)
|
||||
{
|
||||
var normalizedString = text.Normalize(NormalizationForm.FormD);
|
||||
|
||||
// use the Cyrillic letter "й" instead of the combined unicode characters
|
||||
normalizedString = Regex.Replace(normalizedString, "и\u0306", "й", RegexOptions.IgnoreCase);
|
||||
|
||||
var stringBuilder = new StringBuilder();
|
||||
|
||||
foreach (var c in normalizedString)
|
||||
|
|
Loading…
Reference in New Issue