wovnrb 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wovnrb.rb +3 -1
- data/lib/wovnrb/version.rb +1 -1
- 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: daed02abb68cc7f4a52ce07accf99dc89ab1f122
|
4
|
+
data.tar.gz: dccbd85844f57f2e0f78503a6b0a43eee294a122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d256451b6cff5e74d908e316fd9c9147a1062d60d9a9f4f1ecbcd2956c5c5d883f656d3f9eac0fb37f0459f5e9806205a4ac8a37e5bca82319fc7b579e001a84
|
7
|
+
data.tar.gz: 500b3823f814f4fee2e6881ab84688b9364900247e15f4fcc364c1f12fb0aa1204b03f72db660efba5f50601f980f338bb2cb4d08b1991c811b711c4efcbb0aa
|
data/lib/wovnrb.rb
CHANGED
@@ -85,7 +85,9 @@ 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=['"]([^&'"]*)['"]/i)
|
88
|
+
src = node.to_html.match(/src=['"]([^&'"]*)['"]/i)
|
89
|
+
return if src.length < 2
|
90
|
+
src = src[1]
|
89
91
|
# THIS SRC CORRECTION DOES NOT HANDLE ONE IMPORTANT CASE
|
90
92
|
# 1) "../path/with/ellipse"
|
91
93
|
# if this is not an absolute src
|
data/lib/wovnrb/version.rb
CHANGED