From 504106b5efc11353bc44db034a3fe73f6a54ba0b Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Mon, 21 Oct 2024 20:59:37 +1100 Subject: [PATCH] issue-2: fixed trim function --- ucl/builtins/strs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucl/builtins/strs.go b/ucl/builtins/strs.go index 33eb4e9..a10893d 100644 --- a/ucl/builtins/strs.go +++ b/ucl/builtins/strs.go @@ -41,5 +41,5 @@ func trim(ctx context.Context, args ucl.CallArgs) (any, error) { return nil, err } - return strings.ToLower(s), nil + return strings.TrimSpace(s), nil }