From 44aa72d6971ba9c025ee1d26fadf27d3be7492c4 Mon Sep 17 00:00:00 2001 From: lovegreen1321 <87122618+lovegreen1321@users.noreply.github.com> Date: Thu, 8 Jul 2021 23:20:49 +0530 Subject: [PATCH] Update validation.go --- utils/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/validation.go b/utils/validation.go index abf3d2a..563c419 100644 --- a/utils/validation.go +++ b/utils/validation.go @@ -8,7 +8,7 @@ import ( func IsOnion(identifier string) bool { // TODO: At some point we will want to support i2p if len(identifier) >= 22 && strings.HasSuffix(identifier, ".onion") { - matched, _ := regexp.MatchString(`(^|\.)[a-z2-7]{16}\.onion$`, identifier) + matched, _ := regexp.MatchString(`(^|\.)[a-z2-7]{16,56}\.onion$`, identifier) return matched } return false