From 367ef18381e0fafbcbd4933acbc671e99202a71b Mon Sep 17 00:00:00 2001 From: O-01-67 <68935009+O-01-67@users.noreply.github.com> Date: Thu, 1 Sep 2022 12:35:23 -0400 Subject: [PATCH] "set color" allows HSL hsl(a,b,c) --- mods/prompt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/prompt.js b/mods/prompt.js index 1e4b9d9a..137767a4 100644 --- a/mods/prompt.js +++ b/mods/prompt.js @@ -105,8 +105,8 @@ function funniPrompt() { } }; if(property === "color") { - if(!value.startsWith("rgb(") || value.split(",").length !== 3) { - alert("Color must be in the form \"rgb(red,green,blue)\"!"); + if(!value.startsWith("rgb(") || !value.startsWith("hsl(") || value.split(",").length !== 3) { + alert("Color must be in the form \"rgb(red,green,blue)\" or \"hsl(hue,saturation,lightness)\"!"); break; } var checkedColorObject = rgbStringToUnvalidatedObject(value);