From 440d2991a44260dbf6e616a57db303708b38dd08 Mon Sep 17 00:00:00 2001 From: Andy Hinkle Date: Tue, 21 Nov 2023 08:01:23 -0600 Subject: [PATCH 1/3] Add docs for hex validator --- validation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/validation.md b/validation.md index 2603bd9a96..3d54e3c32b 100644 --- a/validation.md +++ b/validation.md @@ -906,6 +906,7 @@ Below is a list of all available validation rules and their function: [Filled](#rule-filled) [Greater Than](#rule-gt) [Greater Than Or Equal](#rule-gte) +[Hex](#rule-hex) [Image (File)](#rule-image) [In](#rule-in) [In Array](#rule-in-array) @@ -1344,6 +1345,11 @@ The field under validation must be greater than the given _field_ or _value_. Th The field under validation must be greater than or equal to the given _field_ or _value_. The two fields must be of the same type. Strings, numerics, arrays, and files are evaluated using the same conventions as the [`size`](#rule-size) rule. + +#### hex + +The field under validation must be a valid [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) value. + #### image From dbfc63d109132aaf0c67f45f149489057b8964f5 Mon Sep 17 00:00:00 2001 From: Andy Hinkle Date: Tue, 21 Nov 2023 08:58:14 -0600 Subject: [PATCH 2/3] Wording --- validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation.md b/validation.md index 3d54e3c32b..b935d76be0 100644 --- a/validation.md +++ b/validation.md @@ -1348,7 +1348,7 @@ The field under validation must be greater than or equal to the given _field_ or #### hex -The field under validation must be a valid [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) value. +The field under validation contains a valid color value in [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) format. #### image From 588ec2077a42a98869793e01a75d1a753f75739d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 21 Nov 2023 10:37:13 -0600 Subject: [PATCH 3/3] formatting --- validation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/validation.md b/validation.md index b935d76be0..07202376cb 100644 --- a/validation.md +++ b/validation.md @@ -906,7 +906,7 @@ Below is a list of all available validation rules and their function: [Filled](#rule-filled) [Greater Than](#rule-gt) [Greater Than Or Equal](#rule-gte) -[Hex](#rule-hex) +[Hex Color](#rule-hex-color) [Image (File)](#rule-image) [In](#rule-in) [In Array](#rule-in-array) @@ -1345,10 +1345,10 @@ The field under validation must be greater than the given _field_ or _value_. Th The field under validation must be greater than or equal to the given _field_ or _value_. The two fields must be of the same type. Strings, numerics, arrays, and files are evaluated using the same conventions as the [`size`](#rule-size) rule. - -#### hex + +#### hex_color -The field under validation contains a valid color value in [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) format. +The field under validation must contain a valid color value in [hexadecimal](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) format. #### image