Browse Source

config: Comments in ini file traditionally start with ';' (#79)

Bernhard Froehlich 3 năm trước cách đây
mục cha
commit
e5f27e02e5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      config.go

+ 1 - 1
config.go

@@ -236,7 +236,7 @@ func IniParser(r io.Reader, set func(name, value string) error) error {
 			continue // skip empties
 		}
 
-		if line[0] == '#' {
+		if line[0] == '#' || line[0] == ';' {
 			continue // skip comments
 		}