fix regression (#4086)

This commit is contained in:
Luccas Mateus 2021-10-19 15:39:23 -03:00 committed by GitHub
parent a986de8ad0
commit 07e05ef183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ impl Default for Selector {
}
pub fn begin_selector_query(input_html: String, selector: &Selector) -> Vec<Value> {
if selector.as_table.is_some() {
if !selector.as_table.value.is_string() {
retrieve_tables(input_html.as_str(), &selector.as_table, selector.inspect)
} else {
match selector.attribute.is_empty() {