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) {