mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-21 07:55:06 +00:00
Ignore empty line when loading properties file
This commit is contained in:
parent
3a59540365
commit
307ef62740
@ -26,7 +26,7 @@ bool loadPropertiesFile(const std::string& filePath, std::function<void(const st
|
|||||||
line_count++;
|
line_count++;
|
||||||
std::string key, value;
|
std::string key, value;
|
||||||
auto trimmed_line = string::trim(line, " \t");
|
auto trimmed_line = string::trim(line, " \t");
|
||||||
if (!trimmed_line.starts_with("#")) {
|
if (!trimmed_line.starts_with("#") && !trimmed_line.empty()) {
|
||||||
if (trimmed_line.starts_with("[")) {
|
if (trimmed_line.starts_with("[")) {
|
||||||
key_prefix = trimmed_line;
|
key_prefix = trimmed_line;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user