mirror of
https://github.com/norcalli/nvim-colorizer.lua.git
synced 2026-09-10 07:06:14 -04:00
fix(rgb): Invalid number comparison (#144)
This commit is contained in:
parent
19bd49d0aa
commit
9b5fe0450b
|
|
@ -73,6 +73,9 @@ function M.parser(line, i, opts)
|
|||
a = 1
|
||||
else
|
||||
a = tonumber(a)
|
||||
if not a then
|
||||
return
|
||||
end
|
||||
-- Convert percentage alpha to decimal if applicable
|
||||
if unit_a == "%" then
|
||||
a = a / 100
|
||||
|
|
|
|||
Loading…
Reference in a new issue