Skip to content

Commit

Permalink
Strip email_address in normalize_and_hash_email_address function of r…
Browse files Browse the repository at this point in the history
…emarketing examples.
  • Loading branch information
arnau126 committed Feb 25, 2023
1 parent 3412847 commit eb36da5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/remarketing/upload_conversion_enhancement.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def normalize_and_hash_email_address(email_address):
Returns:
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
"""
normalized_email = email_address.lower()
normalized_email = email_address.strip().lower()
email_parts = normalized_email.split("@")

# Check that there are at least two segments
Expand Down
2 changes: 1 addition & 1 deletion examples/remarketing/upload_conversion_with_identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def normalize_and_hash_email_address(email_address):
Returns:
A normalized (lowercase, removed whitespace) and SHA-265 hashed string.
"""
normalized_email = email_address.lower()
normalized_email = email_address.strip().lower()
email_parts = normalized_email.split("@")

# Check that there are at least two segments
Expand Down

0 comments on commit eb36da5

Please sign in to comment.