You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/04/18 17:54:25 UTC
[jira] [Resolved] (VALIDATOR-393) UrlValidator rejects domain
having underscore
[ https://issues.apache.org/jira/browse/VALIDATOR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved VALIDATOR-393.
----------------------------
Resolution: Duplicate
> UrlValidator rejects domain having underscore
> ---------------------------------------------
>
> Key: VALIDATOR-393
> URL: https://issues.apache.org/jira/browse/VALIDATOR-393
> Project: Commons Validator
> Issue Type: Bug
> Affects Versions: 1.4.1 Release
> Reporter: Stefan Pi
>
> Minmal example:
> {code}
> UrlValidator urlValidator = new UrlValidator();
> boolean isValidWithoutUnderscore = urlValidator.isValid("http://www.example.org/"); // evaluates to true
> boolean isValidWithUnderscore = urlValidator.isValid("http://www.ex_ample.org/"); // evaluates to false
> {code}
> Real world example:
> {code}
> UrlValidator urlValidator = new UrlValidator();
> boolean isValidRealWord = urlValidator.isValid("http://marquerite_van_c.tripod.com/"); // evaluates to false
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)