fix currentSection parsing

This commit is contained in:
jacekpoz 2024-04-26 12:10:17 +02:00
parent b8512cd486
commit 5e0eb7efe3
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -54,7 +54,7 @@ inline std::string checkAndRemove(const std::string &str, const std::string &pre
\ \
if (line.starts_with('[') && line.ends_with(']')) {\ if (line.starts_with('[') && line.ends_with(']')) {\
currentSection = line.substr(1, line.length() - 2);\ currentSection = line.substr(1, line.length() - 2);\
toLower(currentSection);\ currentSection[0] = std::tolower(currentSection[0]);\
continue;\ continue;\
}\ }\
\ \