nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13ecbfa
)
lib/ini: fix bad subtring for path
author
Jean Privat
<jean@pryen.org>
Sat, 6 Dec 2014 05:11:29 +0000
(
00:11
-0500)
committer
Jean Privat
<jean@pryen.org>
Tue, 9 Dec 2014 09:17:16 +0000
(
04:17
-0500)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/ini.nit
patch
|
blob
|
history
diff --git
a/lib/ini.nit
b/lib/ini.nit
index
a6de8f1
..
60d2f12
100644
(file)
--- a/
lib/ini.nit
+++ b/
lib/ini.nit
@@
-199,7
+199,8
@@
class ConfigTree
else if line.has_prefix(";") then
continue
else if line.has_prefix("[") then
- var key = line.trim.substring(1, line.length - 2)
+ line = line.trim
+ var key = line.substring(1, line.length - 2)
path = key
set_node(path, null)
else