More #4077 - thx OmrSi :)

This commit is contained in:
Nikolaj Olsson 2020-04-06 07:20:21 +02:00
parent fcd2cf61b0
commit 59d0ad905e

View File

@ -2151,20 +2151,7 @@ namespace Nikse.SubtitleEdit.Core
text = text.Replace(" \u060C", "\u060C");
}
while (text.Contains(" و "))
{
text = text.Replace(" و ", " و");
}
if (text.Length > 3 && text[0] == 'و' && text[1] == ' ')
{
text = text.Remove(1, 1);
}
while (text.Contains(" و\""))
{
text = text.Replace(" و\"", "و\"");
}
text = new Regex(@"\bو ").Replace(text, "و");
while (text.Contains("ـ "))
{