Allow periods in keys Because for some reason they're not allowed and that's really weird. Change-Id: Ibbb2360164a527580c7f81c667d122c16880da63
1 files changed, 1 insertions(+), 1 deletions(-) M ini.go
M ini.go => ini.go +1 -1
@@ 149,7 149,7 @@ func (p *iniParser) readKey() error { key := string(keyBytes) for _, r := range key { if r != '-' && r != '_' && !unicode.IsSymbol(r) && !unicode.IsLetter(r) && !unicode.IsNumber(r) && !unicode.IsMark(r) { if r != '-' && r != '_' && r != '.' && !unicode.IsSymbol(r) && !unicode.IsLetter(r) && !unicode.IsNumber(r) && !unicode.IsMark(r) { return fmt.Errorf("Keys may only contain letters, numbers, marks, symbols, hyphens, and underscores; %q is not a valid character.", r) } }