Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: ColorPicker: Regex to ensure hex color hash prefix #1634

Merged
merged 1 commit into from Apr 17, 2024

Conversation

leekelleher
Copy link
Member

Description

Following on from a conversation on PR #1606, this PR adds a RegEx to check whether the hex color value is valid (e.g. 0-9a-f and 3 or 6 characters in length), and doesn't have a hash prefix #. This is to support current usage (pre-v14 migrated data) and accommodate future usage, for those wishing to use alternative CSS value formats.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@leekelleher leekelleher changed the title ColorPicker: Regex to ensure hex color hash prefix Bugfix: ColorPicker: Regex to ensure hex color hash prefix Apr 16, 2024
@leekelleher leekelleher merged commit bbcd99c into main Apr 17, 2024
8 checks passed
@leekelleher leekelleher deleted the bugfix/color-picker-value-hash-prefix-regex branch April 17, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants