fix(conf): support equal signs in property values (#5392)

Co-authored-by: liaogs <liaoguoshun@qq.com>
This commit is contained in:
RUGBEN
2026-02-01 12:29:16 +08:00
committed by GitHub
parent a2310bf9d7
commit 4d5ed2c45d
2 changed files with 68 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ func LoadProperties(filename string, opts ...Option) (Properties, error) {
raw := make(map[string]string)
for i := range lines {
pair := strings.Split(lines[i], "=")
pair := strings.SplitN(lines[i], "=", 2)
if len(pair) != 2 {
// invalid property format
return nil, &PropertyError{