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 76cad0f commit 4359f92Copy full SHA for 4359f92
lib_src/misc/colors.ts
@@ -32,7 +32,7 @@ export function getColors(selectors) {
32
}
33
34
function rgb2hex(rgb) {
35
- if (rgb.search("rgb") == -1) {
+ if (rgb.search("rgb") === -1) {
36
return rgb
37
} else {
38
rgb = rgb.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+))?\)$/)
0 commit comments