CLI: Ignore blank lines

master
Starbeamrainbowlabs 5 years ago
parent 6b79d8c5bb
commit e9cc40f335
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2

@ -84,6 +84,9 @@ namespace MarkovGrams
IEnumerable<string> words = wordlistSource.ReadAllLines().SelectMany((string word) => {
word = word.Trim();
// No blank lines here!
if (string.IsNullOrWhiteSpace(word)) return new string[] { };
if (convertLowercase)
word = word.ToLower();
if (splitOnWhitespace)

Loading…
Cancel
Save