respect-validation/docs/validators
Alexandre Gomes Gaigalas 2600db3c74 Introduce Trimmed validator
This commit introduces the `Trimmed` validator that ensures a string
cannot start or end with a list of specific values.

The default values used are a selected list of Unicode invisible
characters.

To support this change, the StartsWith and EndsWith validators were
modified so they can also support multiple values to check for.

While StartsWith and EndsWith are more generic, and also perform
start-of-array and end-of-array kinds of checks, Trimmed is more
focused on string inputs, which tailors to a more specific use
case.
2026-02-26 10:34:53 +00:00
..
.pages Use awesome-pages to customize the menus 2026-01-26 12:26:06 +01:00
After.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
All.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AllOf.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Alnum.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Alpha.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AlwaysInvalid.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AlwaysValid.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AnyOf.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
ArrayType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ArrayVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Attributes.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Base.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Base64.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Between.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BetweenExclusive.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Blank.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BoolType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BoolVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Bsn.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CallableType.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Charset.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Cnh.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Cnpj.md Add Support for Alphanumeric CNPJ 2026-02-04 13:20:30 +01:00
Consonant.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Contains.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ContainsAny.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ContainsCount.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Control.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Countable.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CountryCode.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Cpf.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CreditCard.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CurrencyCode.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Date.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DateTime.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DateTimeDiff.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Decimal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Digit.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Directory.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Domain.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Each.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Email.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Emoji.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EndsWith.md Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
Equals.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Equivalent.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Even.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Executable.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Exists.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Extension.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Factor.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Factory.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
FalseVal.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Falsy.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
File.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Finite.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FloatType.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FloatVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Format.md Remove Masked validator in favor of Formatted 2026-02-06 20:44:26 +01:00
Formatted.md Remove Masked validator in favor of Formatted 2026-02-06 20:44:26 +01:00
Graph.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
GreaterThan.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
GreaterThanOrEqual.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Hetu.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
HexRgbColor.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Iban.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Identical.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Image.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Imei.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
In.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Infinite.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Instance.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IntType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IntVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Ip.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Isbn.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
IterableType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IterableVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Json.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Key.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
KeyExists.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
KeyOptional.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
KeySet.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LanguageCode.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LeapDate.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LeapYear.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Length.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LessThan.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LessThanOrEqual.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Lowercase.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Luhn.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
MacAddress.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Max.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Mimetype.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Min.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Multiple.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Named.md Remove Masked validator in favor of Formatted 2026-02-06 20:44:26 +01:00
Negative.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NfeAccessKey.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Nif.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Nip.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NoneOf.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Not.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NullOr.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NullType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Number.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NumericVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ObjectType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Odd.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
OneOf.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Pesel.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Phone.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Pis.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PolishIdCard.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PortugueseNif.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Positive.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PostalCode.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Printable.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Property.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PropertyExists.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PropertyOptional.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PublicDomainSuffix.md Fix PublicSuffix validator and UpdateDomainSuffixesCommand 2026-02-23 12:18:57 +00:00
Punct.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Readable.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Regex.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ResourceType.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Roman.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Satisfies.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ScalarVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ShortCircuit.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Size.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Slug.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Sorted.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Space.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Spaced.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
StartsWith.md Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
StringType.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
StringVal.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SubdivisionCode.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Subset.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SymbolicLink.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Templated.md Remove Masked validator in favor of Formatted 2026-02-06 20:44:26 +01:00
Time.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Tld.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Trimmed.md Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
TrueVal.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Undef.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UndefOr.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Unique.md Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Uppercase.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Url.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Uuid.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Version.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Vowel.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
When.md Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Writable.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Xdigit.md Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00