func-string.go: ad least one extra prefix and suffix for startsWithStr() and endsWitchStr()
This commit is contained in:
+4
-2
@@ -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),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user