We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e55939 + 24ff70f commit 77d0faeCopy full SHA for 77d0fae
1 file changed
internal/plugins/campaigns/service.go
@@ -719,7 +719,7 @@ func isValidHexColor(s string) bool {
719
return false
720
}
721
for _, c := range s[1:] {
722
- if !((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F')) {
+ if (c < '0' || c > '9') && (c < 'a' || c > 'f') && (c < 'A' || c > 'F') {
723
724
725
0 commit comments