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)