FOO=BAR= should be "FOO" = "BAR="

This commit is contained in:
mattn
2013-11-18 18:46:24 +09:00
parent 6e333bd708
commit c0dce90b3c
2 changed files with 6 additions and 2 deletions

View File

@ -138,11 +138,11 @@ func parseLine(line string) (key string, value string, err error) {
}
// now split key from value
splitString := strings.Split(line, "=")
splitString := strings.SplitN(line, "=", 2)
if len(splitString) != 2 {
// try yaml mode!
splitString = strings.Split(line, ":")
splitString = strings.SplitN(line, ":", 2)
}
if len(splitString) != 2 {