sqt 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sqt.rb +1 -3
- metadata +1 -1
data/lib/sqt.rb
CHANGED
@@ -47,19 +47,17 @@ module SQT
|
|
47
47
|
else
|
48
48
|
toVisit = foundLink['href']
|
49
49
|
end
|
50
|
-
if !(toVisit =~ /^http
|
50
|
+
if !(toVisit =~ /^http(s)?:\/\//).nil? && !result.any? {|sqr| sqr[:uri] == toVisit || sqr[:uri] == toVisit + '/' || sqr[:uri] + '/' == toVisit }
|
51
51
|
d = sarbotteCurlWithDepth(toVisit, depth - 1, result)
|
52
52
|
result = d if !d.nil?
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
56
56
|
if !(result.any? {|sqr| sqr[:uri] == url || sqr[:uri] == url + '/' || sqr[:uri] + '/' == url })
|
57
|
-
puts url
|
58
57
|
result.push Sqt.buildResult(url, file)
|
59
58
|
end
|
60
59
|
end
|
61
60
|
|
62
|
-
|
63
61
|
end
|
64
62
|
|
65
63
|
def self.sarbottePath(path, extension)
|