From 8a5149ea05fab45382808b6eac213e38693e6953 Mon Sep 17 00:00:00 2001 From: Josef Gabrielsson Date: Tue, 8 Mar 2022 19:10:06 +0100 Subject: [PATCH] Split only once --- dotyaml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotyaml.go b/dotyaml.go index 0bf12fb..998ef5b 100644 --- a/dotyaml.go +++ b/dotyaml.go @@ -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 {