Created
December 23, 2024 16:08
-
-
Save dpaluy/f892ac7c7e6f1e23ea923c2aa2e77828 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
strip = proc(&:strip) | |
downcase = proc(&:downcase) | |
remove_alias = proc { _1.gsub(/\+.*@/, '@') } | |
email = " [email protected] " | |
(strip >> downcase >> remove_alias).call(email) # => "[email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment