This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-validator.git
The following commit(s) were added to refs/heads/master by this push: new 9b2fcf2 Give access to allowLocal setting 9b2fcf2 is described below commit 9b2fcf25ce0f95241d6f87c1c04df38065760c7c Author: Sebb <s...@apache.org> AuthorDate: Tue Jul 28 16:31:27 2020 +0100 Give access to allowLocal setting --- .../org/apache/commons/validator/routines/DomainValidator.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/apache/commons/validator/routines/DomainValidator.java b/src/main/java/org/apache/commons/validator/routines/DomainValidator.java index 0f1da41..08ed4c3 100644 --- a/src/main/java/org/apache/commons/validator/routines/DomainValidator.java +++ b/src/main/java/org/apache/commons/validator/routines/DomainValidator.java @@ -348,6 +348,16 @@ public class DomainValidator implements Serializable { return arrayContains(LOCAL_TLDS, key); } + /** + * Does this instance allow local addresses? + * + * @return true if local addresses are allowed. + * @since 1.7 + */ + public boolean isAllowLocal() { + return this.allowLocal; + } + private String chompLeadingDot(String str) { if (str.startsWith(".")) { return str.substring(1);