Ignore leading and trailing space around values when parsing config lines
This commit is contained in:
parent
feb5da70a8
commit
7803b07e7f
@ -89,6 +89,7 @@ func (self *ConfigParser) parse(scanner Scanner, name, base_path_for_includes st
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
key, val, _ := strings.Cut(line, " ")
|
key, val, _ := strings.Cut(line, " ")
|
||||||
|
val = strings.TrimSpace(val)
|
||||||
switch key {
|
switch key {
|
||||||
default:
|
default:
|
||||||
err := self.LineHandler(key, val)
|
err := self.LineHandler(key, val)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user