main
bashrc 2026-04-24 12:06:29 +01:00
parent 083dddea0d
commit 5a1cece30e
1 changed files with 2 additions and 1 deletions

View File

@ -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