Project

General

Profile

Actions

Improvement #694

closed

Validate hex colors of button blocks

Added by liaham about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Compatible Redmine Version:

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/ }

Related issues 1 (0 open1 closed)

Related to xmera Omnia - Feature #651: Provide a dashboard on the start pageClosedliaham

Actions
Actions #1

Updated by liaham about 3 years ago

  • Status changed from New to Closed
  • Assignee set to liaham
  • % Done changed from 0 to 100
Actions #2

Updated by liaham about 3 years ago

  • Related to Feature #651: Provide a dashboard on the start page added
Actions

Also available in: Atom PDF