KawaiiEmailAddress
Extraction of validate logic from validates_email_format_of
to support japanese docomo/au kawaii addresses.
Installation
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
Usage
It's NOT Rails' validator. Use it with this
# accept `kawaii` local part with docomo or ezweb.
KawaiiEmailAddress::Validator.new('....-_-....@docomo.ne.jp').valid? # => true
# reject with other domains.
KawaiiEmailAddress::Validator.new('u3u...chu@example.com').valid? # => false
Contributing
- 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
THANX
This library based on https://github.com/alexdunae/validates_email_format_of