Fixing the functions-based filtering logic
This commit is contained in:
+3
-2
@@ -633,8 +633,9 @@ class Adaptor(SelectorsGeneration):
|
|||||||
for pattern in patterns:
|
for pattern in patterns:
|
||||||
results.extend(self.find_by_regex(pattern, first_match=False))
|
results.extend(self.find_by_regex(pattern, first_match=False))
|
||||||
|
|
||||||
for function in functions:
|
for result in (results or [self]):
|
||||||
_search_tree(self, function)
|
for function in functions:
|
||||||
|
_search_tree(result, function)
|
||||||
|
|
||||||
return self.__convert_results(results)
|
return self.__convert_results(results)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user