1
0
Эх сурвалжийг харах

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

Mikael Koli 4 жил өмнө
parent
commit
31f346604d

+ 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):