Fixing the functions-based filtering logic

This commit is contained in:
Karim shoair
2024-11-09 22:32:05 +02:00
parent 6b62579a7e
commit 4b2814404a
+3 -2
View File
@@ -633,8 +633,9 @@ class Adaptor(SelectorsGeneration):
for pattern in patterns:
results.extend(self.find_by_regex(pattern, first_match=False))
for function in functions:
_search_tree(self, function)
for result in (results or [self]):
for function in functions:
_search_tree(result, function)
return self.__convert_results(results)