Skip to content

Commit 4359f92

Browse files
committed
===
1 parent 76cad0f commit 4359f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_src/misc/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getColors(selectors) {
3232
}
3333

3434
function rgb2hex(rgb) {
35-
if (rgb.search("rgb") == -1) {
35+
if (rgb.search("rgb") === -1) {
3636
return rgb
3737
} else {
3838
rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/)

0 commit comments

Comments
 (0)