mirror of
https://github.com/Respect/Validation.git
synced 2026-03-14 14:25:45 +01:00
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. |
||
|---|---|---|
| .. | ||
| messages | ||
| validators | ||
| .pages | ||
| case-sensitiveness.md | ||
| comparable-values.md | ||
| comparing-empty-values.md | ||
| configuration.md | ||
| custom-validators.md | ||
| feature-guide.md | ||
| getting-started.md | ||
| handling-exceptions.md | ||
| handling-results.md | ||
| index.md | ||
| migrating-from-v2-to-v3.md | ||
| prefixes.md | ||
| requirements.txt | ||
| validators.md | ||