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

Feature Request - 2024-06-01 - String Validator #91

Open
5 tasks
azurepolarbear opened this issue Jun 1, 2024 · 0 comments
Open
5 tasks

Feature Request - 2024-06-01 - String Validator #91

azurepolarbear opened this issue Jun 1, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@azurepolarbear
Copy link
Member

Description

We want to add a StringValidator class. The only methods right now will be confirming that something is a valid RGB hex string (#RRGGBB) or a valid RGBA hex string (#RRGGBBAA).

The logic for these checks already exist in the unit tests (/src/test/shared/color.ts: checkForValidHexColorString(hex: string).

Tasks

  • create class
  • implement valid RGB hex string check
  • test valid RGB hex string check
  • implement valid RGBA hex string check
  • test valid RGBA hex string check
@azurepolarbear azurepolarbear added enhancement New feature or request good first issue Good for newcomers labels Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant