From ff12296b0a9982c46ebc86e9f4c0d2d749eda16f Mon Sep 17 00:00:00 2001 From: askolesov Date: Tue, 7 Feb 2017 16:08:11 +0300 Subject: [PATCH] -fixed regex for whitespace checking --- libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs b/libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs index 5c25413fcf..28b7a68ab4 100644 --- a/libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs +++ b/libse/NetflixQualityCheck/NetflixWhiteSpaceChecker.cs @@ -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);