Skipping blank lines in automatic wordlist type recognition.

This commit is contained in:
ruri
2019-10-01 14:41:36 +02:00
parent 81b60e64b4
commit 6fb466d566
@@ -148,7 +148,7 @@ namespace OpenBullet
var wordlist = new Wordlist(Path.GetFileNameWithoutExtension(file), path, Globals.environment.WordlistTypes.First().Name, "");
// Get the first line
var first = File.ReadLines(wordlist.Path).First();
var first = File.ReadLines(wordlist.Path).First(l => !string.IsNullOrWhiteSpace(l));
// Set the correct wordlist type
wordlist.Type = Globals.environment.RecognizeWordlistType(first);