Skip to content

Commit

Permalink
Merge pull request #211 from geo-knowledge-hub/master
Browse files Browse the repository at this point in the history
Updating branch b-0.8
  • Loading branch information
M3nin0 authored Apr 3, 2024
2 parents 3c4ea22 + d97c001 commit 3058921
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
pip install ".[$EXTRAS]"
pip freeze
docker --version
docker-compose --version
docker compose --version
- name: Run tests
run: |
./run-tests.sh
5 changes: 4 additions & 1 deletion geo_rdm_records/modules/checker/links/checker/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def _extract_links(record_document):
url_pattern = r'https?://[^\s<>"\',]+|www\.[^\s<>"\',]+'

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


def extract_links_from_record(record):
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ tests =
sphinx>=4.5.0
tripoli~=2.0.0
requests-mock>=1.10.0
docker-services-cli<=0.7.1
opensearch2 =
invenio-search[opensearch2]>=2.1.0,<3.0.0

Expand Down

0 comments on commit 3058921

Please sign in to comment.