mirror of
https://github.com/Respect/Validation.git
synced 2024-06-13 19:22:16 +02:00
4fd26e39bb
Since I've already renamed the "Optional" rule to "UnderOf," it makes sense to rename this rule too. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
595 B
595 B
NoWhitespace
NoWhitespace()
Validates if a string contains no whitespace (spaces, tabs and line breaks);
v::noWhitespace()->validate('foo bar'); //false
v::noWhitespace()->validate("foo\nbar"); // false
This is most useful when chaining with other validators such as Alnum()
Categorization
- Strings
Changelog
Version | Description |
---|---|
0.3.9 | Created |
See also: