소스 검색

fix: attribute in formatter class EmailAddress
Fixed attribute "top_level_domain".,

Mikael Koli 4 년 전
부모
커밋
31f346604d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      redmail/models/address.py

+ 1 - 1
redmail/models/address.py

@@ -47,7 +47,7 @@ class EmailAddress:
         
         Ie. john.smith@en.example.com --> com"""
         domain = self.domain.split(".")
-        return domain[-1] if len(domain) > 1 else None
+        return '.' + domain[-1] if len(domain) > 1 else None
 
     @property
     def second_level_domain(self):