Validate the RGB color field for 1-9a-f, 6 chars max length.

Comments

shrop’s picture

Version: » 6.x-1.x-dev
Status: Active » Closed (fixed)
  • Added highlight RGB color validation to commit a7e1fd. This validation uses this regex for matches:
    /^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
  • Added "#" to the values saved in the highlight_filter_color field. It is also included in variable defaults.
  • I also changed some of the field help text to be a bit more clear.