Skip to main content
Skip to search
Can we use first and third party cookies and web beacons to
understand our audience, and to tailor promotions you see
?
Yes, please
No, do not track me
Drupal.org home
Discover Drupal
Drupal Core
Drupal CMS
Drupal AI
Case Studies
Drupal for Government
Drupal for Higher Education
Drupal for Nonprofit
Drupal for eCommerce
Drupal for FinTech
Drupal for Healthcare
Drupal for Enterprise
Drupal for Retail
Drupal for Travel & Tourism
Build with Drupal
Download Drupal
Documentation
Getting started
Local Development Guide
Developer Resources
Drupal CMS User Guide
Drupal User Guide
API
Modules
Themes
Recipes
Site Templates
Issue queues
Security Advisories
Partners & Services
Find a Drupal Certified Partner
Become a Drupal Certified Partner
Find a Hosting Provider
Find a Migration Partner
Find Training
Drupal Steward
Community
About the Community
How to Contribute
DrupalCon
Events
Jobs / Careers
News & Blogs
Forum
Slack
Newsletters
Drupal Swag Shop
Support Drupal
The Drupal Association
Donate
Become a Partner
Become a Ripple Maker
Become a Drupal Sustaining Member
Drupal Swag Shop
Get Started
Try Drupal CMS
Try Hosting
Return to content
Search form
Search
Log in
Create account
The 2026 Drupal Business Survey is open. Your response will help shape the future of the Drupal business ecosystem.
Take the survey today
Modules
Highlight Filter
Issues
Validate the RGB color field for the input filter settings form
Closed (fixed)
Project:
Highlight Filter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
shrop
Reporter:
shrop
Created:
14 May 2012 at 20:14 UTC
Updated:
17 May 2012 at 15:23 UTC
Validate the RGB color field for 1-9a-f, 6 chars max length.
Comments
Comment
#1
shrop
commented
17 May 2012 at 15:23
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.
Log in
or
register
to post comments
Contribution record
Comments
Comment #1
shrop commented/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/