Skip to content

Commit

Permalink
fix(rgb): Invalid number comparison (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akianonymus authored Jan 30, 2025
1 parent 19bd49d commit 9b5fe04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/colorizer/parser/rgb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b5fe04

Please sign in to comment.