Przeglądaj źródła

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

Mikael Koli 4 lat temu
rodzic
commit
31f346604d
1 zmienionych plików z 1 dodań i 1 usunięć
  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):