Merge pull request #68 from Antzelino/patch-1

Fix #67
pull/72/head
Alexey Kutepov 5 years ago committed by GitHub
commit 01751daba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ proc loadConfig*(filePath: string): Config =
result = defaultConfig
for rawLine in filePath.lines:
let line = rawLine.strip
if line.len > 0 and line[0] == '#':
if line.len == 0 or line[0] == '#':
continue
let pair = line.split('=', 1)
let key = pair[0].strip

Loading…
Cancel
Save