2
0
Эх сурвалжийг харах

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

Bernhard Froehlich 3 жил өмнө
parent
commit
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
 			continue // skip empties
 		}
 		}
 
 
-		if line[0] == '#' {
+		if line[0] == '#' || line[0] == ';' {
 			continue // skip comments
 			continue // skip comments
 		}
 		}