mirror of
https://github.com/turbot/steampipe.git
synced 2026-01-24 08:01:31 -05:00
16 lines
269 B
Go
16 lines
269 B
Go
package utils
|
|
|
|
import "unicode"
|
|
|
|
// ContainsUpper returns true if the string contains any uppercase characters
|
|
func ContainsUpper(s string) bool {
|
|
hasUpper := false
|
|
for _, r := range s {
|
|
if unicode.IsUpper(r) {
|
|
hasUpper = true
|
|
break
|
|
}
|
|
}
|
|
return hasUpper
|
|
}
|