From 7af75f78a5651951f5f3554926b564fc997858cd Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Wed, 6 Nov 2024 20:24:30 +0200 Subject: [PATCH] Better logic for `Adaptors` `re_first` method --- scrapling/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scrapling/parser.py b/scrapling/parser.py index 52d9bcf..b58e319 100644 --- a/scrapling/parser.py +++ b/scrapling/parser.py @@ -927,8 +927,7 @@ class Adaptors(List[Adaptor]): """ for n in self: - result = n.re_first(regex, None, replace_entities) - if result: + for result in n.re(regex, replace_entities): return result return default