From 8b29711d78d779d7039e02aeb1bfa0e927bf09e9 Mon Sep 17 00:00:00 2001 From: Ersan Date: Mon, 14 Dec 2020 00:27:23 -0800 Subject: [PATCH] Allows dot char, '.', at the end of domain name --- src/main/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/helpers.js b/src/main/helpers.js index 37d4e926..2b6a537a 100644 --- a/src/main/helpers.js +++ b/src/main/helpers.js @@ -131,8 +131,8 @@ export function isValidDomain(host) { if (host[0] === '_' || host.substr(-1) === '_') { return false } - // Host cannot start or end with a '.' - if (host[0] === '.' || host.substr(-1) === '.') { + // Host cannot start with a '.' + if (host[0] === '.') { return false } var alphaNumerics = '`~!@#$%^&*()+={}[]|\\"\';:>