Actions
Improvement #694
closedValidate hex colors of button blocks
Start date:
Due date:
% Done:
100%
Estimated time:
Compatible Redmine Version:
Pull Request Link:
Description
Check this regular expression:
/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/i
and use it as follows:
validates :color, format: { with: /\A --expression-here-- \z/ }
Actions