commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-412) No options for Pseudo TLD
Date Sat, 04 Feb 2017 13:14:52 GMT

    [ https://issues.apache.org/jira/browse/VALIDATOR-412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852778#comment-15852778
] 

Sebb commented on VALIDATOR-412:
--------------------------------

You can provide your own overrides to the TLD lists using the DomainValidator#updateTLDOverride
method.

DomainValidator.updateTLDOverride(ArrayType.GENERIC_PLUS, new String[]{"local", "pvt"});

This must be done before getting a validator instance.

> No options for Pseudo TLD
> -------------------------
>
>                 Key: VALIDATOR-412
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-412
>             Project: Commons Validator
>          Issue Type: Improvement
>            Reporter: Nathan Frost
>            Priority: Minor
>
> It is currently impossible to validate URL's that have pseudo TLDs such as .local or
.pvt. They will always result in invalid URLs. It would be nice to have an option to accept
these pseudo TLDs.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message