respect-validation/docs/rules/NoWhitespace.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

603 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: