1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-06-30 17:43:59 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Sergey M
63522a9f7b
Merge b8bd948d27 into 4cbf5cfc57 2024-06-12 18:18:14 +02:00
Sergey M
b8bd948d27 fix: when normalizing a movie title, do not replace the Cyrillic letter й 2023-03-04 17:53:12 +02:00

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)