Make Sonar happier
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ function isValidHexColor(color: string): boolean {
|
||||
return (
|
||||
typeof color === "string" &&
|
||||
(color.length === 7 || color.length === 9) &&
|
||||
color.charAt(0) === "#" &&
|
||||
color.startsWith("#") &&
|
||||
!color
|
||||
.slice(1)
|
||||
.split("")
|
||||
|
||||
Reference in New Issue
Block a user