aboutsummaryrefslogtreecommitdiff
path: root/src/config.nim
diff options
context:
space:
mode:
authorshirleyquirk2020-08-04 23:54:04 +0000
committerGitHub2020-08-04 23:54:04 +0000
commit22799b2e439d6b74ca648060faa1e3f1ee13f946 (patch)
tree512a18c53d4e7e6878ea134a2a307e3caec2278d /src/config.nim
parentb2321b0ded6f4a9803daf9dbcbd88d56321a9305 (diff)
parent731f8d7692bfe08f5fd5890a98797f9b1b8d065d (diff)
Merge pull request #1 from shirleyquirk/collect
Collect
Diffstat (limited to 'src/config.nim')
-rw-r--r--src/config.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.nim b/src/config.nim
index e8be1fc..1afa89a 100644
--- a/src/config.nim
+++ b/src/config.nim
@@ -81,9 +81,9 @@ proc readConfigFile*(configFile: string):
table[currentCategory] = category
elif currentCategory.len > 0:
if line.match(re"(\w+)\ *=\ *(.*)", matches):
- category[].add(matches[0], matches[1])
+ category[matches[0]]= matches[1]
else:
- category[].add(line, "")
+ category[line]=""
false
except EOFError: