Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.76k stars 774 forks source link

HexRgbColor does not allow lowercase #1360

Closed reformed closed 1 year ago

reformed commented 3 years ago

The documentation says:

v::hexRgbColor()->validate('#FFFAAA'); // true

However, if the hex contains lowercase, it fails:

v::hexRgbColor()->validate('#fffaaa'); // false

Why?

edsamodra commented 3 years ago

I'm trying that code. Then the failure does not occur.

alganet commented 1 year ago

Which version are you using?

Please note that we are currently supporting only the 2.2 version and above. This was fixed in 2.1