Fixed reading the last line of config

This commit is contained in:
SChernykh
2025-11-22 09:23:03 +01:00
parent 8230040b76
commit 3584910baa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1049,7 +1049,7 @@ std::vector<std::vector<std::string>> parse_config(const std::string& file_name)
std::string s; std::string s;
while (std::getline(f, s).good()) { while (f.good() && std::getline(f, s)) {
if (s.empty()) { if (s.empty()) {
continue; continue;
} }
+1 -1
View File
@@ -14,4 +14,4 @@ param6 = value1 value2 value3
param8#comment param8#comment
param9 param9
abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789=0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz=:// abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789=0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz=://