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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a7d093d20dde86b5e94612905a3449c5916c0f
|
4
|
+
data.tar.gz: fe3d113442d492eb36a1c71984beba1b4da57630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|