premailer 1.10.3 → 1.10.4

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: 1cf01ae1164cfaa246cf3044869ddb13b7f8faa8
4
- data.tar.gz: 4ab25f8c3c21465fdcc8f7ed78863d382d27f02e
3
+ metadata.gz: 7b5558b61431fcbad3d7fe4136960b75e8cecec6
4
+ data.tar.gz: bd3c0941de04600fae48c0e2d7d2104a676fb0a6
5
5
  SHA512:
6
- metadata.gz: d1d73c8120d00c597de895fdae3bc5fd3b98ae08849ebf6b154ed790b8adcf22973abc0e5b3fdf32d7d9cce89f3c0167748b0c8f9da68f292c2f889a8f1dd95a
7
- data.tar.gz: 980035a2805ca6704e6a2d246f056f12f78ae8cc0df6e35caa93ef03eb2844cdaf54d9502f83e2fe7052c19cf818f659458b106757b52defc17629db79f1c0ac
6
+ metadata.gz: 2a62d80a9238c76cfed3b1ad398c98221e6ece39a289d4b9435862f2c0191cba8ac7461590cdc8406e3eecb765d2c96faa51bc00158edd6abdee2baee76d041e
7
+ data.tar.gz: 5533bcce2a737c63f4ee3ded37d3f765739925bf89739955e068f3e79889a1e5e02ffbe6dffd13ec7f733e00c3b9d5feaba6205bf95c542cfe4e11989c253a6c
@@ -31,7 +31,7 @@ module HtmlToPlainText
31
31
  txt.gsub!(/<img.+?alt=\'([^\']*)\'[^>]*\>/i, '\1')
32
32
 
33
33
  # links
34
- txt.gsub!(/<a\s.*?href=["'](mailto:)?([^"']*)["'][^>]*>((.|\s)*?)<\/a>/i) do |s|
34
+ txt.gsub!(/<a\s[^\n]*?href=["'](mailto:)?([^"']*)["'][^>]*>(.*?)<\/a>/im) do |s|
35
35
  if $3.empty?
36
36
  ''
37
37
  elsif $3.strip.downcase == $2.strip.downcase
@@ -1,4 +1,4 @@
1
1
  class Premailer
2
2
  # Premailer version.
3
- VERSION = '1.10.3'.freeze
3
+ VERSION = '1.10.4'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: premailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.3
4
+ version: 1.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: css_parser
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.6.11
229
+ rubygems_version: 2.6.12
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Preflight for HTML e-mail.