Update site.py

This commit is contained in:
dami 2025-07-20 22:04:02 +08:00
parent 8c7c344ea9
commit f7992d8eae
1 changed files with 2 additions and 2 deletions

View File

@ -2266,8 +2266,8 @@ location ^~ {from} {\n\
import tldextract
extracted = tldextract.extract(domain)
# 组合注册域名和顶级域名
return "{extracted.domain}.{extracted.suffix}"
return f"{extracted.domain}.{extracted.suffix}"
def getDomainRootName_Old(self, domain):
s = domain.split('.')
count = len(s)