Browse Source

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

Mikael Koli 4 năm trước cách đây
mục cha
commit
31f346604d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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):