mail_auto_link_obfuscation 0.2.6 → 0.2.7

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: b9de6df0b8e7d35683ed12234f440964bd161911
4
- data.tar.gz: 61449ceb65e0a36ab81f5ef2079f0937c91316d2
3
+ metadata.gz: afdc835449188464de0de10eb60cd622c564ca91
4
+ data.tar.gz: 285be28ed5043ffdab0082b2513b8f3e572cfaf3
5
5
  SHA512:
6
- metadata.gz: 85943c2925b95874753c9b6de549f1f83f4f9f2273fb68b3c96b2422c2e9645e3070cb17537369f23ee018956d8630657eea79f638b1c910a954083132fe8d02
7
- data.tar.gz: 7f2dca01f6ed72576f86fbf134248cea6456b6f9f1b00ae1f0d25f712cb9333544e2b3b8aeb309aba23f4dd149c89766df49192ed84685c8c0a54852b0d042b9
6
+ metadata.gz: a29d8b3086cff05e51dc5ad92a0ccaf59fea234b4edf31cfe7bacfed0d38f35959ea51024d4c2adeafaf22511cc145c60e477934872afa5003782f03aa88a811
7
+ data.tar.gz: 1711fff680ca39d034d6c82440da0e0ba8fa69c0647e9f61c023eb0ece680ea45961649545a383c3f0a22bd9aba0639917d282af22960718b237a8c310f6e961
@@ -4,8 +4,8 @@ require 'nokogiri'
4
4
 
5
5
  module MailAutoLinkObfuscation
6
6
  class AutoLinkObfuscator
7
- AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]+@\w+(?:\.\w+)+/
8
- AUTO_LINKED_URL_PATTERN = %r{(?:(?:\w+:)?//\w+(?:\.\w+)*|\w+(?:\.\w+)*\.\w{2,}(?!\.\w+))\S*}
7
+ AUTO_LINKED_EMAIL_PATTERN = /[\w\.%+-]+@[\w-]+(?:\.[\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.6'
4
+ VERSION = '0.2.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_auto_link_obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Jundt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail