fix(rgb): Invalid number comparison (#144)

This commit is contained in:
Akshay 2025-01-30 14:53:31 +05:30 committed by GitHub
parent 19bd49d0aa
commit 9b5fe0450b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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