mail_auto_link_obfuscation 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: b081b2e17a6fd7bccbd79c7e56d19120b73f6dd1
4
- data.tar.gz: 066186765a62cd7ed246b90d13ef79186715326a
3
+ metadata.gz: a0a7d093d20dde86b5e94612905a3449c5916c0f
4
+ data.tar.gz: fe3d113442d492eb36a1c71984beba1b4da57630
5
5
  SHA512:
6
- metadata.gz: 83f2f66e344a2793b854010061860994ea6bbef96d9f05f2b68891a45fb85854200506cc2dd0316074bee52cd78979403f82803f77f1c7c448197fcce311cc43
7
- data.tar.gz: 2ddbdf520e79955ef9ba975bb75df44d0f83816f89773de49da46def0c1fa23bfe43dedaa0a68252972f357a9e2f087814c6b8df6044e3ff1e7484136418ae40
6
+ metadata.gz: e350cea21dcb344414af7829fc2c05e3100b523931f8bec6383f2a66ce1bc7deb86b1a51431523f879506cd931e10fa542a90c8371df280dd27cecac44d226fb
7
+ data.tar.gz: e2cab258d92ce3c939f27f03f58bf1a95af6f7b0c4268c70195b3daa06b6549997418e83e708ede66e6b5542602ed614bafd0e19b4b47bcaefabda3aa14282c8
@@ -5,7 +5,7 @@ require 'nokogiri'
5
5
  module MailAutoLinkObfuscation
6
6
  class AutoLinkObfuscator
7
7
  AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]+@\w+(?:\.\w+)+/
8
- AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)?//\w+(?:\.\w+)*|\w+(?:\.\w+)*\.\w{2,}(?!\.\w+))}
8
+ AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)?//\w+(?:\.\w+)*|\w+(?:\.\w+)*\.\w{2,}(?!\.\w+))\S*}
9
9
  AUTO_LINKED_PATTERN = Regexp.new([AUTO_LINKED_EMAIL_PATTERN, AUTO_LINKED_URL_PATTERN].join('|'))
10
10
  KEY_CHARS = %r{[@.:/]+}
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailAutoLinkObfuscation
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_auto_link_obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Jundt