Subject: | Domains segments that start with digits |
Date: | Thu, 6 Aug 2009 09:21:46 -0500 |
To: | "bug-Validate-Net [...] rt.cpan.org" <bug-Validate-Net [...] rt.cpan.org> |
From: | "Zbiegiel, Piotr T." <pzbiegiel [...] anl.gov> |
I know this bug has been reported but the report is two years old according to CPAN.
When checking domain names, the module requires that all segments of the domain name start with a letter. This is inaccurate. The module fails to validate domains like www.4chan.org.
At the moment I have commented out this specific check from your code:
# Segment must start with a letter
#if ( $element !~ /^[a-z]/ ) {
# return $self->withReason( "Domain section '$element' must start with a letter" );
#}
Thanks,
Piotr T Zbiegiel
Argonne National Laboratory