You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Pi (JIRA)" <ji...@apache.org> on 2016/04/18 14:12:25 UTC

[jira] [Created] (VALIDATOR-393) UrlValidator rejects domain having underscore

Stefan Pi created VALIDATOR-393:
-----------------------------------

             Summary: 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)