{"id":15405185,"url":"https://github.com/fnando/email_typo","last_synced_at":"2025-04-17T00:51:18.900Z","repository":{"id":21930963,"uuid":"94466821","full_name":"fnando/email_typo","owner":"fnando","description":"Clean up e-mail strings when the user's made a typo (like 'gmail.cmo').","archived":false,"fork":false,"pushed_at":"2022-10-14T09:03:42.000Z","size":64,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-26T17:13:39.507Z","etag":null,"topics":["email-typo","ruby","scrubber"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnando.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["fnando"],"custom":["https://paypal.me/nandovieira/🍕"]}},"created_at":"2017-06-15T18:16:56.000Z","updated_at":"2021-09-27T23:22:16.000Z","dependencies_parsed_at":"2022-08-07T10:01:20.423Z","dependency_job_id":null,"html_url":"https://github.com/fnando/email_typo","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Femail_typo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Femail_typo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Femail_typo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Femail_typo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/email_typo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249294887,"owners_count":21246008,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email-typo","ruby","scrubber"],"created_at":"2024-10-01T16:15:21.373Z","updated_at":"2025-04-17T00:51:18.882Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":["https://github.com/sponsors/fnando","https://paypal.me/nandovieira/🍕"],"categories":[],"sub_categories":[],"readme":"# email_typo\n\n[![Tests](https://github.com/fnando/email_typo/workflows/Tests/badge.svg)](https://github.com/fnando/email_typo)\n[![Code Climate](https://codeclimate.com/github/fnando/email_typo/badges/gpa.svg)](https://codeclimate.com/github/fnando/email_typo)\n[![Gem](https://img.shields.io/gem/v/email_typo.svg)](https://rubygems.org/gems/email_typo)\n[![Gem](https://img.shields.io/gem/dt/email_typo.svg)](https://rubygems.org/gems/email_typo)\n\nEmailTypo is a Ruby gem that gives you an easy, tested method that fixes email\ntypos.\n\nAs an example: A user with the email \"joe@gmail.com\" accidentally enters in\n\"joe@gmal.cmo\", EmailTypo will fix it automatically.\n\nEmailTypo is concerned with incorrectly-entered data (email provider names,\nTLDs), not with evaluating whether a particular domain is valid, or whether a\nparticular email address is legitimate. (That is, it's focused on fixing the\npart that comes after the \"@\" in the email address.) It works really well for\nhelping you — and your users — when they accidentally type something in wrong.\n\n**NOTE**: This is based on https://github.com/charliepark/fat_fingers, but\nwithout polluting the `String` class and with easier extension support.\n\n## Installation\n\n```bash\ngem install email_typo\n```\n\nOr add the following line to your project's Gemfile:\n\n```ruby\ngem \"email_typo\"\n```\n\n## Usage\n\nTo fix any typos, just use `EmailTypo.call(email)`.\n\n```ruby\nEmailTypo.call(\"john.doe@gmail.co\")\n#=\u003e \"john.doe@gmail.com\"\n```\n\nTo add/change the processors, add any object that responds to `#call(email)` to\n`EmailTypo.default_processors`. The following example adds a processor for\n`.uol.com.br`, a Brazilian email provider:\n\n```ruby\nEmailTypo.default_processors \u003c\u003c lambda do |email|\n  email.gsub(/@uol\\.com(\\..*?)?/, \"@uol.com.br\")\nend\n```\n\n## Maintainer\n\n- [Nando Vieira](https://github.com/fnando)\n\n## Contributors\n\n- https://github.com/fnando/email_typo/contributors\n\n## Contributing\n\nFor more details about how to contribute, please read\nhttps://github.com/fnando/email_typo/blob/main/CONTRIBUTING.md.\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT). A copy of the license can be\nfound at https://github.com/fnando/email_typo/blob/main/LICENSE.md.\n\n## Code of Conduct\n\nEveryone interacting in the email_typo project's codebases, issue trackers, chat\nrooms and mailing lists is expected to follow the\n[code of conduct](https://github.com/fnando/email_typo/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Femail_typo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Femail_typo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Femail_typo/lists"}