1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-06-30 17:43:59 +02:00
This commit is contained in:
Sergey M 2024-06-20 18:12:06 +03:00 committed by GitHub
commit 89a7b2307b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,10 @@ public static string Replace(this string text, int index, int length, string rep
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)