[hibernate-commits] [hibernate/hibernate-validator] 911efb: HV-1516 Support punycode-encoded domain names and ...
GitHub
noreply at github.com
Tue Nov 7 13:35:45 EST 2017
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-validator
Commit: 911efbad82d0c81e2ae4aa8b5b412865ed6bd127
https://github.com/hibernate/hibernate-validator/commit/911efbad82d0c81e2ae4aa8b5b412865ed6bd127
Author: Guillaume Smet <guillaume.smet at gmail.com>
Date: 2017-11-07 (Tue, 07 Nov 2017)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/util/DomainNameUtil.java
M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/hv/EmailValidatorTest.java
M engine/src/test/java/org/hibernate/validator/test/internal/constraintvalidators/hv/URLValidatorTest.java
Log Message:
-----------
HV-1516 Support punycode-encoded domain names and consecutive hyphens
Consecutive hyphens are allowed except when they are in third and fourth
position (reserved for xn--). For now we don't implement this
restriction as I don't think it's worth the complexity for such a narrow
case.
More information about the hibernate-commits
mailing list