From 4b3a677f4de47077b1847f98e6bc3d7a19301a35 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 29 Apr 2021 15:51:16 -0400 Subject: [PATCH] support adding http://localhost:8545 as a node --- ui/imports/Utils.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/imports/Utils.qml b/ui/imports/Utils.qml index 3e2acfc70b..1ecb55ea44 100644 --- a/ui/imports/Utils.qml +++ b/ui/imports/Utils.qml @@ -334,7 +334,7 @@ QtObject { } function isURL(text) { - return (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(text)) + return (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}(\.[a-zA-Z0-9()]{1,6})?\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(text)) } function isURLWithOptionalProtocol(text) {