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.
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.