Quellcode durchsuchen

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

Bernhard Froehlich vor 3 Jahren
Ursprung
Commit
e5f27e02e5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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
 		}