mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 21:32:14 +02:00
955405b997
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
30 lines
531 B
Markdown
30 lines
531 B
Markdown
# HexRgbColor
|
|
|
|
- `HexRgbColor()`
|
|
|
|
Validates whether the input is a hex RGB color or not.
|
|
|
|
```php
|
|
v::hexRgbColor()->validate('#FFFAAA'); // true
|
|
v::hexRgbColor()->validate('#ff6600'); // true
|
|
v::hexRgbColor()->validate('123123'); // true
|
|
v::hexRgbColor()->validate('FCD'); // true
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Strings
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
2.1.0 | Allow hex RGB colors to be case-insensitive
|
|
2.0.0 | Allow hex RGB colors with 3 integers
|
|
0.7.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Xdigit](Xdigit.md)
|