mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 08:30:00 +02:00
fix has_single_tag_inside_element & update tests
This commit is contained in:
parent
31a8033844
commit
aea57d0cf3
10 changed files with 86 additions and 39 deletions
|
@ -380,7 +380,7 @@ impl Util {
|
|||
}
|
||||
|
||||
// And there should be no text nodes with real content
|
||||
node.get_child_nodes().iter().any(|n| {
|
||||
!node.get_child_nodes().iter().any(|n| {
|
||||
n.get_type()
|
||||
.map(|t| t == NodeType::TextNode)
|
||||
.unwrap_or(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue