builtin-string.go: fix return type of strLower() and strUpper()

This commit is contained in:
Celestino Amoroso 2025-11-15 06:18:38 +01:00
parent 4709248828
commit d64602cb00

View File

@ -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),
})
}