wovnrb 0.1.31 → 0.1.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb/version.rb +1 -1
- data/lib/wovnrb.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c1ab636ea4b0c1c960668254918cb3580aa191f
|
4
|
+
data.tar.gz: 4a0a7b11efd95abcae6787357b81f7f64b7e4b4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d6f646ba06b92bd9901d17e2151fbbedccd97d6f1ba69bda9ee1f130a490d84718e526484afa7791badf267a7d8a31869afdef1c32beead6fb3be08eb06b8fa
|
7
|
+
data.tar.gz: 035d34f557c485091fad5584f6ba594ea414f2793bb910a1389d3e8ced741bfa44da6dea44ebecdac33fa0d47de3ffff8d2d117b248b8c4e828fd746db8d0f6f
|
data/lib/wovnrb/version.rb
CHANGED
data/lib/wovnrb.rb
CHANGED
@@ -85,9 +85,7 @@ module Wovnrb
|
|
85
85
|
d.xpath('//img').each do |node|
|
86
86
|
# use regular expressions to support case insensitivity (right?)
|
87
87
|
if node.to_html =~ /src=['"][^'"]*['"]/i
|
88
|
-
src = node.to_html.match(/src=['"]([
|
89
|
-
return if src.length < 2
|
90
|
-
src = src[1]
|
88
|
+
src = node.to_html.match(/src=['"]([^'"]*)['"]/i)[1]
|
91
89
|
# THIS SRC CORRECTION DOES NOT HANDLE ONE IMPORTANT CASE
|
92
90
|
# 1) "../path/with/ellipse"
|
93
91
|
# if this is not an absolute src
|