Add any_prefix_match and any_suffix_match functions for bulk prefix and suffix matching. (#4997)

Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
Jacob Martin
2022-08-18 21:33:59 +02:00
committed by GitHub
parent 3c0b58946b
commit e7130a888d
21 changed files with 2438 additions and 22 deletions
+102
View File
@@ -3320,6 +3320,108 @@
"type": "function"
}
},
{
"name": "strings.any_prefix_match",
"decl": {
"args": [
{
"of": [
{
"type": "string"
},
{
"dynamic": {
"type": "string"
},
"type": "array"
},
{
"of": {
"type": "string"
},
"type": "set"
}
],
"type": "any"
},
{
"of": [
{
"type": "string"
},
{
"dynamic": {
"type": "string"
},
"type": "array"
},
{
"of": {
"type": "string"
},
"type": "set"
}
],
"type": "any"
}
],
"result": {
"type": "boolean"
},
"type": "function"
}
},
{
"name": "strings.any_suffix_match",
"decl": {
"args": [
{
"of": [
{
"type": "string"
},
{
"dynamic": {
"type": "string"
},
"type": "array"
},
{
"of": {
"type": "string"
},
"type": "set"
}
],
"type": "any"
},
{
"of": [
{
"type": "string"
},
{
"dynamic": {
"type": "string"
},
"type": "array"
},
{
"of": {
"type": "string"
},
"type": "set"
}
],
"type": "any"
}
],
"result": {
"type": "boolean"
},
"type": "function"
}
},
{
"name": "strings.replace_n",
"decl": {