form_builder_validators icon indicating copy to clipboard operation
form_builder_validators copied to clipboard

[General]: suggestion of new validators

Open ArturAssisComp opened this issue 4 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Package/Plugin version

12.0.0

What you'd like to happen

The following validators were not implemented yet. They are interesting because they are complementary to some of the existent validators.

File validators

  • [ ] Validators.minFileSize(min, base:base): Checks if the field contains a file size that is less than the max size with base 1000 or 1024. (complement to maxFileSize.

String validators

  • [ ] Validators.notContains(substring) - Checks if the field does not contain the substring. (complements contains.
  • [ ] FormBuilderValidators.notEndsWith() - requires the substring not to be the end of the field's value. (complements endsWith)
  • [ ] FormBuilderValidators.notStartsWith() - requires the substring not to be the start of the field's value. (complements startsWith)
  • [ ] Validators.hasMaxUppercaseChars(max:max) - Checks if the field has a maximum number of uppercase chars. (complements hasMinUppercaseChars)
  • [ ] Validators.hasMaxLowercaseChars(max:max) - Checks if the field has a maximum number of lowercase chars. (complements hasMinLowercaseChars)
  • [ ] Validators.hasMaxNumericChars(max:max) - Checks if the field has a maximum number of numeric chars. (complements hasMinNumericChars)
  • [ ] Validators.hasMaxSpecialChars(max:max) - Checks if the field has a maximum number of special chars. (complements hasMinSpecialChars)
  • [x] Validators.notMatch(regExp) - Checks if the field does not match with the regular expression regExp. (complements match)

Alternatives you've considered

No response

Aditional information

No response

ArturAssisComp avatar Aug 22 '25 14:08 ArturAssisComp