This commit is contained in:
silicons
2020-07-23 12:23:13 -07:00
parent 5d7dfd327c
commit 59bd63471e
+1 -1
View File
@@ -68,7 +68,7 @@
/proc/sanitize_hexcolor(color, desired_format = 3, include_crunch = 0, default = "ffffff", default_replacement = "f")
if(!istext(default) || (length(default) < 3))
CRASH("Default should be a text string of RGB format, with or without the crunch, 3 or 6 characters. Default was instead [default]")
if(!istext(default_replacement) || length(default_replacement) != 1))
if(!istext(default_replacement) || (length(default_replacement) != 1))
CRASH("Invalid default_replacement: [default_replacement]")
switch(text2ascii(default_replacement))
if(48 to 57)