We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b79753 commit ba95de8Copy full SHA for ba95de8
strings/stringsutil.go
@@ -315,8 +315,9 @@ func ContainsAll(s string, ss ...string) bool {
315
316
// ContainsAllI returns true if s contains all specified substrings (case-insensitive).
317
func ContainsAllI(s string, ss ...string) bool {
318
+ lowerS := strings.ToLower(s)
319
for _, sub := range ss {
- if !strings.Contains(strings.ToLower(s), strings.ToLower(sub)) {
320
+ if !strings.Contains(lowerS, strings.ToLower(sub)) {
321
return false
322
}
323
0 commit comments