mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
19 lines
463 B
Markdown
19 lines
463 B
Markdown
|
---
|
||
|
title: strings.ContainsAny
|
||
|
description: Reports whether a string contains any character from a given string.
|
||
|
categories: [functions]
|
||
|
menu:
|
||
|
docs:
|
||
|
parent: "functions"
|
||
|
keywords: [string strings substring contains any]
|
||
|
signature: ["strings.ContainsAny STRING CHARACTERS"]
|
||
|
aliases: []
|
||
|
relatedfuncs: [strings.Contains]
|
||
|
---
|
||
|
|
||
|
{{ strings.ContainsAny "Hugo" "gm" }} → true
|
||
|
|
||
|
The check is case sensitive:
|
||
|
|
||
|
{{ strings.ContainsAny "Hugo" "Gm" }} → false
|