Skip to content

Commit

Permalink
Split only once
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed Mar 8, 2022
1 parent 93392f9 commit 8a5149e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func normalizeValueColonsPair(field interface{}) string {
}

func transformPairs(s string) *YamlPairs {
split := strings.Split(s, "=")
split := strings.SplitN(s, "=", 2)
var k, v string

if len(split) == 1 {
Expand Down

0 comments on commit 8a5149e

Please sign in to comment.