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

Add hexadecimal RGB triplet string format check #83

Merged
merged 3 commits into from Jul 8, 2018
Merged

Add hexadecimal RGB triplet string format check #83

merged 3 commits into from Jul 8, 2018

Conversation

chiting
Copy link
Contributor

@chiting chiting commented Jun 7, 2018

This PR adds a format check when the user inputs a string, addressing the issue #82.

Please note that I'm still not sure enforcing an ArgumentError is the best solution because some people could be using a non valid hexadecimal string in their project without any visible impact (i.e 'green') and that change could potentially break their code.

@ku1ik
Copy link
Owner

ku1ik commented Jul 8, 2018

Looks good to me! Thanks @chiting 👍

@ku1ik ku1ik merged commit 4bba7e3 into ku1ik:master Jul 8, 2018
@chiting chiting deleted the add-hex-check branch July 8, 2018 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants