Skip to content

Does/should validators check for a static list of currently valid Top Level Domains (TLD)?  #198

@jlegido

Description

@jlegido

First of all many thanks to all the people involved in this project, I really appreciate his/her time.

I was wondering if library is expected to simply validate a domain from a RFC standpoint or is expected to check a list of TLDs for instance.

Steps to reproduce

  1. Create a script
cat <<EOF >> test.py
#!/usr/bin/python3
from validators import domain
print(domain("sanpellegrino-corporate.itOLDWEBSITE"))
EOF
  1. Execute it
python3 test.py

Expected behaviour

False

Found behaviour

True

Errors

None

Additional information

Operating system:

Debian GNU/Linux bookworm/sid \n \l

Library version:

validators         0.18.2

Python version:

Python 3.9.9

Metadata

Metadata

Assignees

Labels

duplicateIssue/PR: RedundantenhancementIssue/PR: A new featureoutdatedIssue/PR: Open for more than 3 months

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions