func-string.go: ad least one extra prefix and suffix for startsWithStr() and endsWitchStr()
This commit is contained in:
parent
7f282e5460
commit
51b272dda8
@ -205,12 +205,14 @@ func ImportStringFuncs(ctx ExprContext) {
|
|||||||
|
|
||||||
ctx.RegisterFunc("startsWithStr", newGolangFunctor(startsWithStrFunc), typeBoolean, []ExprFuncParam{
|
ctx.RegisterFunc("startsWithStr", newGolangFunctor(startsWithStrFunc), typeBoolean, []ExprFuncParam{
|
||||||
newFuncParam(paramSource),
|
newFuncParam(paramSource),
|
||||||
newFuncParamFlag(paramPrefix, pfRepeat),
|
newFuncParam(paramPrefix),
|
||||||
|
newFuncParamFlag("other "+paramPrefix, pfRepeat),
|
||||||
})
|
})
|
||||||
|
|
||||||
ctx.RegisterFunc("endsWithStr", newGolangFunctor(endsWithStrFunc), typeBoolean, []ExprFuncParam{
|
ctx.RegisterFunc("endsWithStr", newGolangFunctor(endsWithStrFunc), typeBoolean, []ExprFuncParam{
|
||||||
newFuncParam(paramSource),
|
newFuncParam(paramSource),
|
||||||
newFuncParamFlag(paramSuffix, pfRepeat),
|
newFuncParam(paramSuffix),
|
||||||
|
newFuncParamFlag("other "+paramSuffix, pfRepeat),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user