From e85c7dd8408e58ec68d17edfd41901cf2e7b2ff4 Mon Sep 17 00:00:00 2001 From: AgatZan <125749924+AgatZan@users.noreply.github.com> Date: Tue, 15 Jul 2025 00:26:16 +0300 Subject: [PATCH] chore(err_msg): Clear assert of `RGB:from_string` --- lua/colorbuddy/data/rgb.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/colorbuddy/data/rgb.lua b/lua/colorbuddy/data/rgb.lua index e36afae..96bf55a 100644 --- a/lua/colorbuddy/data/rgb.lua +++ b/lua/colorbuddy/data/rgb.lua @@ -26,7 +26,7 @@ end function RGB:from_string(str) assert(str:sub(1, 1) == "#", "string color: improperly formatted #RRGGBB") - assert(str:len() == 7, "string color: improper length, must be 7") + assert(str:len() == 7, "string color: improper length, must be len( \"#RRGGBB\" ) == 7") return RGB:new( tonumber(str:sub(2, 3), 16) / 255,