respect-validation/tests
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
..
benchmark Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
feature Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
fixtures Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
src Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
unit Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
bootstrap.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Pest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00