From 5a1cece30ecb71555e36f2277d590697fe64ace6 Mon Sep 17 00:00:00 2001 From: bashrc Date: Fri, 24 Apr 2026 12:06:29 +0100 Subject: [PATCH] Comments --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 2d769cb75..7e493c714 100644 --- a/utils.py +++ b/utils.py @@ -4039,10 +4039,11 @@ def resembles_domain(text: str) -> bool: '"' in text or '(' in text or ')' in text: return False - # conventional domain or yggdrasil address + # conventional domain if '.' in text and '[' not in text and ']' not in text: return True + # yggdrasil address if (text.startswith('[') and text.endswith(']') and ':' in text): return True