Skip to content

Commit 9b5fe04

Browse files
authored
fix(rgb): Invalid number comparison (#144)
1 parent 19bd49d commit 9b5fe04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/colorizer/parser/rgb.lua

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function M.parser(line, i, opts)
7373
a = 1
7474
else
7575
a = tonumber(a)
76+
if not a then
77+
return
78+
end
7679
-- Convert percentage alpha to decimal if applicable
7780
if unit_a == "%" then
7881
a = a / 100

0 commit comments

Comments
 (0)