Subject: | ASCII validator should allow spaces |
The ASCII validator should allow spaces. The range 0x21-0x7e should be
0x20-0x7e.
sub FormValidator::Simple::Validator::ASCII {
my ($self, $params, $args) = @_;
my $data = $params->[0];
return $data =~ /^[\x20-\x7E]+$/ ?
FormValidator::Simple::Constants::TRUE() :
FormValidator::Simple::Constants::FALSE();
}