fix(hipatterns): remove assert. Fixes #1045

This commit is contained in:
Folke Lemaitre 2023-07-02 22:25:43 +02:00
parent a981682603
commit 6d58f1dacf
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -54,7 +54,7 @@ M.plugin = {
local match = m.full_match
---@type string, number
local color, shade = match:match("[%w-]+%-([a-z%-]+)%-(%d+)")
shade = assert(tonumber(shade))
shade = tonumber(shade)
local bg = vim.tbl_get(M.colors, color, shade)
if bg then
local hl = "MiniHipatternsTailwind" .. color .. shade