Extraction of validate logic from validates_email_format_of
to support japanese docomo/au kawaii addresses.
Add this line to your application's Gemfile:
gem 'kawaii_email_address'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kawaii_email_address
It's NOT Rails' validator. Use it with this
# accept `kawaii` local part with docomo or ezweb.
KawaiiEmailAddress::Validator.new('[email protected]').valid? # => true
# reject with other domains.
KawaiiEmailAddress::Validator.new('[email protected]').valid? # => false
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This library based on https://github.com/alexdunae/validates_email_format_of