houseabsolute / data-validate-domain Goto Github PK
View Code? Open in Web Editor NEWDomain and host name validation
Home Page: https://metacpan.org/release/Data-Validate-Domain/
License: Other
Domain and host name validation
Home Page: https://metacpan.org/release/Data-Validate-Domain/
License: Other
The maximum length of a domain name without the ending separator and null byte is 253 bytes. With the those, it is 255 bytes.
There should be a way to disable the TLD check on is_domain()
. With all of the new gTLDs, Net::Domain::TLD
is having a hard time keeping up and often falls behind.
Migrated from rt.cpan.org #103121 (status was 'open')
Requestors:
From [email protected] (@2shortplanks) on 2015-03-25 19:24:50
:
perl -E 'use Data::Validate::Domain; say "broken" if is_hostname("abc\x{0660}.whatever")'
broken
There's a bug in the is_domain_label function - it should be using [0-9] in the regexp not \d to avoid matching (and approving) characters like ARABIC-INDIC DIGIT ZERO
We ran into a resolvable domain name recently with an underscore. RFC 2181 allows underscores in the domain name. However, they may not be used in hostnames under RFC 1123. See this discussion.
Migrated from rt.cpan.org #126999 (status was 'open')
Requestors:
From [email protected] on 2018-08-30 13:58:55
:
gTLDs are allways classified as invalid:
my $v = Data::Validate::Domain->new({domain_disable_tld_validation => 1});
die "is not a domain" unless $v->is_domain('https://names.club');
==> is not a domain at
With the most recent release, is_domain()
allows a period at the end, but is_hostname()
does not. This doesn't make sense and can make validation more complicated in systems that use both functions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.