respect-validation/docs/rules/HexRgbColor.md
Henrique Moody 18ce48371c
Allow hex RGB colors with 3 integers
This commit will also apply the contribution guidelines to the rule and
improve its  documentation.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 19:05:53 +02:00

400 B

HexRgbColor

  • HexRgbColor()

Validates weather the input is a hex RGB color or not.

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

Changelog

Version Description
2.0.0 Allow hex RGB colors with 3 integers
0.7.0 Created

See also: