Преглед изворни кода

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

Bernhard Froehlich пре 3 година
родитељ
комит
e5f27e02e5
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 		}