func-string.go: ad least one extra prefix and suffix for startsWithStr() and endsWitchStr()

This commit is contained in:
Celestino Amoroso 2024-06-02 12:30:17 +02:00
parent 7f282e5460
commit 51b272dda8

View File

@ -205,12 +205,14 @@ func ImportStringFuncs(ctx ExprContext) {
ctx.RegisterFunc("startsWithStr", newGolangFunctor(startsWithStrFunc), typeBoolean, []ExprFuncParam{
newFuncParam(paramSource),
newFuncParamFlag(paramPrefix, pfRepeat),
newFuncParam(paramPrefix),
newFuncParamFlag("other "+paramPrefix, pfRepeat),
})
ctx.RegisterFunc("endsWithStr", newGolangFunctor(endsWithStrFunc), typeBoolean, []ExprFuncParam{
newFuncParam(paramSource),
newFuncParamFlag(paramSuffix, pfRepeat),
newFuncParam(paramSuffix),
newFuncParamFlag("other "+paramSuffix, pfRepeat),
})
}