Skip to content

Commit

Permalink
Invasion window - filter files now ignore blank lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbroad committed Jan 27, 2024
1 parent 22d8853 commit 614beac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invasion_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ namespace invasion_window
max_value_len = 0;
while (getline(in, line))
{
if (line.rfind("#", 0) == 0)
if (line.empty() || (line.rfind("#", 0) == 0))
continue;
std::pair<std::string, std::string> tokens;
if ((pos = line.find(delimiter)) != std::string::npos)
Expand Down

0 comments on commit 614beac

Please sign in to comment.