docs: add strcontains function doc

pull/13223/head
Martin Grogan 1 year ago committed by Lucas Bajolet
parent 0ddcbaf18f
commit 35682265c4

@ -0,0 +1,25 @@
---
page_title: strcontains - Functions - Configuration Language
description: |-
The strcontains function checks whether a given string can be found within another string.
---
# `strcontains` Function
`strcontains` function checks whether a substring is within another string.
```hcl
strcontains(string, substr)
```
## Examples
```
> strcontains("hello world", "wor")
true
```
```
> strcontains("hello world", "wod")
false
```

@ -285,6 +285,10 @@
"title": "split",
"path": "templates/hcl_templates/functions/string/split"
},
{
"title": "strcontains",
"path": "templates/hcl_templates/functions/string/strcontains"
},
{
"title": "strrev",
"path": "templates/hcl_templates/functions/string/strrev"

Loading…
Cancel
Save