fix: [Phone module] Filter Invalid Phone numbers

This commit is contained in:
Terrtia 2023-05-24 13:31:10 +02:00
parent 2c8b239eec
commit f7e0a357ea
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -53,7 +53,7 @@ class Phone(AbstractModule):
content = item.get_content() content = item.get_content()
# TODO use language detection to choose the country code ? # TODO use language detection to choose the country code ?
results = self.regex_phone_iter('US', item.id, content) results = self.regex_phone_iter('ZZ', item.id, content)
for phone in results: for phone in results:
print(phone[2]) print(phone[2])