dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Use is_color validator in plain generator

Open mcfadden opened this issue 3 years ago • 0 comments

This moves the IS_COLOUR validation out of the text generator and into the ParamValidators module so we can use it in the plain generator as well.

Prior to this, specifying a color in hex format in the plain generator would raise a Dragonfly::ParamValidators::InvalidParameter exception.

Fixes #519 (and maybe #518 too)

mcfadden avatar Jul 07 '22 15:07 mcfadden