diff --git a/serverside/name-color.ts b/serverside/name-color.ts index c101f77..5a0057b 100644 --- a/serverside/name-color.ts +++ b/serverside/name-color.ts @@ -7,8 +7,9 @@ import * as css from "https://deno.land/x/css@0.3.0/mod.ts"; function is_valid_color(color: string): boolean { try { const { stylesheet } = css.parse(`*{color:${color};}`); - return stylesheet.rules.length == 1 && - stylesheet.rules[0].declarations.length == 1; + return color.toLowerCase() != "example" + && stylesheet.rules.length == 1 + && stylesheet.rules[0].declarations.length == 1; } catch { return false; }