From 7f92d12cc90e9f0156d81c9c252470c291420945 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 11 Feb 2020 21:12:12 +0900 Subject: [PATCH] Fix btcnode validation regex to handle multiple FQDNs, add tests Please enter the commit message for your changes. Lines starting --- desktop/src/main/java/bisq/desktop/util/GUIUtil.java | 2 +- desktop/src/test/java/bisq/desktop/util/GUIUtilTest.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/bisq/desktop/util/GUIUtil.java b/desktop/src/main/java/bisq/desktop/util/GUIUtil.java index a1ee69d72e4..fbab24cc684 100644 --- a/desktop/src/main/java/bisq/desktop/util/GUIUtil.java +++ b/desktop/src/main/java/bisq/desktop/util/GUIUtil.java @@ -1135,7 +1135,7 @@ public static RegexValidator addressRegexValidator() { "(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" + // 2001:db8:3:4::192.0.2.33 64:ff9b::192.0.2.33 ")"; // (IPv4-Embedded IPv6 Address) ipv6RegexPattern = String.format("(?:%1$s)|(?:\\[%1$s\\]\\:%2$s)", ipv6RegexPattern, portRegexPattern); - String fqdnRegexPattern = String.format("(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?