Validates if a string is a valid hexadecimal color code. Supports 3-digit and 6-digit hex codes, with or without the leading
input
: The original input text or dataoutput
: The string to validate as a hex color codeexpectedOutput
: The expected output to compare against.input
, output
, expectedOutput
) can be marked as optional.validate
function can be a boolean, string, or a number.Result
: Boolean (true
or false
) | string | numberAssuming this evaluator returns a boolean
validate
.