diff --git a/HISTORY.rst b/HISTORY.rst index d1dbb7f..1985004 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -11,30 +11,30 @@ History * ``pxp_financial`` * ``trustpay`` -* Equivalent domain names are now normalized when ``hash_address`` is used. +* Equivalent domain names are now normalized when ``hash_email`` is used. For example, ``googlemail.com`` will become ``gmail.com``. * Periods are now removed from ``gmail.com`` email address local parts when - ``hash_address`` is used. For example, ``f.o.o@gmail.com`` will become + ``hash_email`` is used. For example, ``f.o.o@gmail.com`` will become ``foo@gmail.com``. * Fastmail alias subdomain email addresses are now normalized when - ``hash_address`` is used. For example, ``alias@user.fastmail.com`` will + ``hash_email`` is used. For example, ``alias@user.fastmail.com`` will become ``user@fastmail.com``. * Additional ``yahoo.com`` email addresses now have aliases removed from - their local part when ``hash_address`` is used. For example, + their local part when ``hash_email`` is used. For example, ``foo-bar@yahoo.com`` will become ``foo@yahoo.com`` for additional ``yahoo.com`` domains. * Duplicate ``.com`` s are now removed from email domain names when - ``hash_address`` is used. For example, ``example.com.com`` will become + ``hash_email`` is used. For example, ``example.com.com`` will become ``example.com``. * Extraneous characters after ``.com`` are now removed from email domain - names when ``hash_address`` is used. For example, ``example.comfoo`` will + names when ``hash_email`` is used. For example, ``example.comfoo`` will become ``example.com``. -* Certain ``.com`` typos are now normalized to ``.com`` when ``hash_address`` is +* Certain ``.com`` typos are now normalized to ``.com`` when ``hash_email`` is used. For example, ``example.cam`` will become ``example.com``. * Additional ``gmail.com`` domain names with leading digits are now - normalized when ``hash_address`` is used. For example, ``100gmail.com`` will + normalized when ``hash_email`` is used. For example, ``100gmail.com`` will become ``gmail.com``. -* Additional ``gmail.com`` typos are now normalized when ``hash_address`` is +* Additional ``gmail.com`` typos are now normalized when ``hash_email`` is used. For example, ``gmali.com`` will become ``gmail.com``. 2.9.0 (2023-12-05) diff --git a/minfraud/request.py b/minfraud/request.py index c36442a..bc36e17 100644 --- a/minfraud/request.py +++ b/minfraud/request.py @@ -283,7 +283,7 @@ def maybe_hash_email(transaction): return address, domain = _clean_email(address) - if not address: + if address is None: return if domain != "" and "domain" not in email: