v0.3.0-dev.5

This commit is contained in:
Alexander Zhirov 2023-03-27 18:52:01 +03:00
parent fb3550b8ec
commit a1a208ba63
1 changed files with 22 additions and 26 deletions

View File

@ -63,8 +63,10 @@ private:
{ {
string line = configuration.readln(); string line = configuration.readln();
auto match = matchFirst(line, regular); auto match = matchFirst(line, regular);
if (match)
{ if (match.length == 0)
continue;
// if again main section // if again main section
if (match[GROUP_SECTION_MAIN].length) if (match[GROUP_SECTION_MAIN].length)
{ {
@ -85,12 +87,6 @@ private:
group = GROUP_VALUE_3; group = GROUP_VALUE_3;
this.configs[configName].add(sectionName, ConfigParameter(match[GROUP_PROPERTY], match[group])); this.configs[configName].add(sectionName, ConfigParameter(match[GROUP_PROPERTY], match[group]));
// if (sectionName !in this.sections)
// this.sections[sectionName] = ConfigSection(sectionName);
// this.sections[sectionName].add(ConfigParameter(match[GROUP_PROPERTY], match[group]));
}
} }
try { try {