form_builder_validators
form_builder_validators copied to clipboard
[General]: suggestion of new validators
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 themaxsize withbase1000 or 1024. (complement tomaxFileSize.
String validators
- [ ]
Validators.notContains(substring)- Checks if the field does not contain thesubstring. (complementscontains. - [ ]
FormBuilderValidators.notEndsWith()- requires the substring not to be the end of the field's value. (complementsendsWith) - [ ]
FormBuilderValidators.notStartsWith()- requires the substring not to be the start of the field's value. (complementsstartsWith) - [ ]
Validators.hasMaxUppercaseChars(max:max)- Checks if the field has a maximum number of uppercase chars. (complementshasMinUppercaseChars) - [ ]
Validators.hasMaxLowercaseChars(max:max)- Checks if the field has a maximum number of lowercase chars. (complementshasMinLowercaseChars) - [ ]
Validators.hasMaxNumericChars(max:max)- Checks if the field has a maximum number of numeric chars. (complementshasMinNumericChars) - [ ]
Validators.hasMaxSpecialChars(max:max)- Checks if the field has a maximum number of special chars. (complementshasMinSpecialChars) - [x]
Validators.notMatch(regExp)- Checks if the field does not match with the regular expressionregExp. (complementsmatch)
Alternatives you've considered
No response
Aditional information
No response