From d64602cb00fa90888652343c69181879e4eaffff Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Sat, 15 Nov 2025 06:18:38 +0100 Subject: [PATCH] builtin-string.go: fix return type of strLower() and strUpper() --- builtin-string.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin-string.go b/builtin-string.go index a139452..2d487ae 100644 --- a/builtin-string.go +++ b/builtin-string.go @@ -255,11 +255,11 @@ func ImportStringFuncs(ctx ExprContext) { NewFuncParamFlag(strParamOther, PfRepeat), }) - ctx.RegisterFunc("strUpper", NewGolangFunctor(upperStrFunc), TypeBoolean, []ExprFuncParam{ + ctx.RegisterFunc("strUpper", NewGolangFunctor(upperStrFunc), TypeString, []ExprFuncParam{ NewFuncParam(ParamSource), }) - ctx.RegisterFunc("strLower", NewGolangFunctor(lowerStrFunc), TypeBoolean, []ExprFuncParam{ + ctx.RegisterFunc("strLower", NewGolangFunctor(lowerStrFunc), TypeString, []ExprFuncParam{ NewFuncParam(ParamSource), }) }