email_typo 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d6856a8e16bd5bc126d50a00585d871314555a8d85777c4cdb44a59094e8d2
4
- data.tar.gz: c7abbee0b56a9c8d4be377fcc79e7ac6bdda076f47f7889a42cce4058d462a3e
3
+ metadata.gz: 7af77ce6834bcf79d5e52edd538a7c40ade7d33d0a664c27e6e56ee175421f8c
4
+ data.tar.gz: beab6f40f8e612064e843cd54c1ce0d9eb20cd68417729bd4e7977506a045bd0
5
5
  SHA512:
6
- metadata.gz: b5d9042dcf309fbd0869d8aac0fc582c96ab9490324ec5649940845f7dd35277b197517be4179b9ac9d9c57bb2142f7c4c64c387e4720051de1cb52b31556ad2
7
- data.tar.gz: 49d5c382ebcf868de054d56d75ae7b19a30780d252d46f34bf82a7da439f3c420fd3d94f7b6da350121fae12090f53b90149c059370763cc1f87ad4b86aabcba
6
+ metadata.gz: b7bd414559f8b4adbef3f637782d0ba5601072984a553434352f6408f8192ce03a4f5cffdd42700177d74f89c86387d9ddc2e2dd477f6975829551f56582e919
7
+ data.tar.gz: b0c8c59abf06b3d25f45ceba5d703d9286a29c7c4ec6bf4a12374c71b939003017eb090d8c48e3fdb46d8264d7815c67ced55f3a0b14ae14d5df9569bc04eebc
@@ -3,7 +3,7 @@
3
3
  module EmailTypo
4
4
  Gmail = lambda do |email|
5
5
  email.gsub(
6
- /@ga?e?i?o?r?g?[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov|edu)/,
6
+ /@ga?e?i?o?r?g?[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov|edu|ac\.in)/,
7
7
  "@gmail."
8
8
  )
9
9
  end
@@ -3,6 +3,9 @@
3
3
  module EmailTypo
4
4
  Googlemail = lambda do |email|
5
5
  email
6
- .gsub(/@go{0,3}g{0,2}o?le?[mn]?[ail]{1,2}m?[aikl]{0,3}\./, "@googlemail.")
6
+ .gsub(
7
+ /@go{0,3}g{0,2}o?le?[mn]?[ail]{1,2}m?[aikl]{0,3}\.(?!gov|edu|ac\.in)/,
8
+ "@googlemail."
9
+ )
7
10
  end
8
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EmailTypo
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_typo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-27 00:00:00.000000000 Z
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler