mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 01:30:05 +02:00
779c0c1503
The "Alnum" rule is supposed to validate alphanumeric values, but instead, it also validates any whitespace character as valid. The rule also accepts a list of characters on its constructor, so it the users intentionally want some specific characters to also be allowed it is better than they also defined these characters on the rule's constructor. While refactoring the rule I could notice that "AbstractCtypeRule" is just an overhead that does not add much to it, so instead of extending it "Alnum" now extends "AbstractFilterRule" directly (which is the parent of "AbstractCtypeRule"). And since we want all rules to follow our contribution guidelines, this commit also make sure the "Alnum" rule is in accordance with that. Signed-off-by: Henrique Moody <henriquemoody@gmail.com> |
||
---|---|---|
.. | ||
Exceptions | ||
Helpers | ||
Rules | ||
Factory.php | ||
Validatable.php | ||
Validator.php |