Minor fix for last commit (fix #1800)

This commit is contained in:
Nikolaj Olsson 2016-06-18 17:08:27 +02:00
parent caa53731a7
commit 7b5c874f4d

View File

@ -292,8 +292,11 @@ namespace Nikse.SubtitleEdit.Core.Dictionaries
word = word.Replace("--", "-");
word = word.Replace('|', 'l');
word = word.Replace("vx/", "w");
if (Regex.IsMatch(word, "[A-ZÆØÅÄÖÉÈÀÙÂÊÎÔÛËÏa-zæøåäöéèàùâêîôûëï]¤"))
word = word.Replace('¤', 'o');
if (word.Contains('¤'))
{
if (Regex.IsMatch(word, "[A-ZÆØÅÄÖÉÈÀÙÂÊÎÔÛËÏa-zæøåäöéèàùâêîôûëï]¤"))
word = word.Replace('¤', 'o');
}
}
//always replace list