mirror of
https://github.com/Radarr/Radarr
synced 2024-12-22 07:52:34 +00:00
fix: when normalizing a movie title, do not replace the Cyrillic letter й
This commit is contained in:
parent
b6b10d7c6f
commit
b8bd948d27
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue