Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
showmik committed Jun 17, 2023
1 parent 9669cfe commit b193194
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TextCleaner/ViewModel/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ private int CountSentences(string text)
return count;
}


public int CountParagraphs(string text) => Regex.Split(text, @"\n\s*\n").Count(paragraph => !string.IsNullOrWhiteSpace(paragraph));

public int CountLineBreaks(string text) => Regex.Matches(text, @"\n").Count;
Expand Down

0 comments on commit b193194

Please sign in to comment.