Skip to content

Commit

Permalink
-fixed regex for whitespace checking
Browse files Browse the repository at this point in the history
  • Loading branch information
askolesov committed Feb 7, 2017
1 parent 5d914a7 commit ff12296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void Check(Subtitle subtitle, NetflixQualityReportBuilder report)
{
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);
Expand Down

0 comments on commit ff12296

Please sign in to comment.