Skip to content

Commit

Permalink
Support additional validation rules in denylist.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Jun 13, 2024
1 parent e3c8d02 commit cbe44ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Validation/Validation_Rule_Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ private function maybe_update_denylist( Validation_Rule $rule ): void {
case String_Validation_Rule::class:
case Date_Validation_Rule::class:
case Datetime_Validation_Rule::class:
case Email_Validation_Rule::class:
case Hex_Color_Validation_Rule::class:
case URL_Validation_Rule::class:
$this->update_denylist(
array(
Boolean_Validation_Rule::class,
Expand Down

0 comments on commit cbe44ab

Please sign in to comment.