farver icon indicating copy to clipboard operation
farver copied to clipboard

farver::decode_colour() could accept 3 character hex codes

Open francisbarton opened this issue 1 year ago • 1 comments

3 character codes like #9aa are a useful shorthand, and are valid in HTML/CSS. Can farver be edited so as to accept these (and presumably convert them to the full 6 character code?)

farver::decode_colour("#9aa")
✘ Error: Malformed colour string `#9aa`. Must contain either 6 or 8 hex values

francisbarton avatar Apr 07 '23 15:04 francisbarton