Skip to content

Commit

Permalink
Merge pull request #178 from M3nin0/validation
Browse files Browse the repository at this point in the history
checker: improving link extractor function
  • Loading branch information
M3nin0 authored Jan 23, 2024
2 parents 28b26ef + 557b048 commit 8d0a14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo_rdm_records/modules/checker/links/checker/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _extract_links(record_document):
url_pattern = r'https?://[^\s<>"\',]+|www\.[^\s<>"\',]+'

# Find all non-overlapping matches of the pattern in the string
return re.findall(url_pattern, record_document)
return py_.map(re.findall(url_pattern, record_document), lambda x: x.strip(")."))


def extract_links_from_record(record):
Expand Down

0 comments on commit 8d0a14c

Please sign in to comment.