Rewrite method contains_url in utils
Change-Id: I05a0e6949f9411c52ef541f6061d965b607206ef
This commit is contained in:
parent
a16a84e37b
commit
c7c2a6c2f4
@ -65,9 +65,7 @@ def filtered_traverse(document, filter_func):
|
|||||||
|
|
||||||
|
|
||||||
def contains_url(line):
|
def contains_url(line):
|
||||||
if "http://" in line or "https://" in line:
|
return "http://" in line or "https://" in line
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def has_any_node_type(node, node_types):
|
def has_any_node_type(node, node_types):
|
||||||
|
Loading…
Reference in New Issue
Block a user