Fix losing Final when ini upgrade to yaml

This commit is contained in:
yicheng 2018-10-24 22:47:30 +08:00
parent 8c881810a7
commit 016beed4c6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func parseConfig(_ filename : String) -> Config? {
} else if line.hasPrefix("//") || line.hasPrefix("#") || line.count < 1 {
continue
} else {
if (line.split(separator: ",").count > 2) {
if (line.split(separator: ",").count > 1) {
config[currentSectionName]?.array.append(line)
}
}