We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbb92a7 commit ce5b537Copy full SHA for ce5b537
src/resources.jl
@@ -69,7 +69,11 @@ end
69
70
function html_elements(html::Vector{HTMLNode},string::String)
71
elements = eachmatch.([Selector(string)],html)
72
- return reduce(vcat,elements) ## will solve the Vector of Vectors problem
+ if isempty(elements)
73
+ return elements
74
+ else
75
+ return reduce(vcat,elements) ## will solve the Vector of Vectors problem
76
+ end
77
end
78
79
function html_elements(html::HTMLDocument,strings::Vector{String})
0 commit comments