Merge pull request #9 from DSRCorporation/bugfix/whitespace-regex

Bugfix/whitespace-regex
This commit is contained in:
pavel-belenko 2017-02-07 16:24:24 +03:00 committed by GitHub
commit a8444f7c0e

View File

@ -12,7 +12,7 @@ namespace Nikse.SubtitleEdit.Core.NetflixQualityCheck
{
foreach (Paragraph p in subtitle.Paragraphs)
{
foreach (Match m in Regex.Matches(p.Text, "(\\s|\n|\r\n){2,}"))
foreach (Match m in Regex.Matches(p.Text, "( |\n|\r\n){2,}"))
{
string timecode = p.StartTime.ToHHMMSSFF();
string context = NetflixQualityReportBuilder.StringContext(p.Text, m.Index, 6);