MCPcopy Create free account
hub / github.com/coder/coder / containsAny

Function containsAny

coderd/x/chatd/chaterror/signals.go:134–141  ·  view source on GitHub ↗
(lower string, patterns ...string)

Source from the content-addressed store, hash-verified

132}
133
134func containsAny(lower string, patterns ...string) bool {
135 for _, pattern := range patterns {
136 if strings.Contains(lower, pattern) {
137 return true
138 }
139 }
140 return false
141}

Callers 2

detectProviderFunction · 0.85
ClassifyFunction · 0.85

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected