Skip to content

Commit

Permalink
Enable to miss the last /
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Sep 25, 2024
1 parent 9af49de commit 5d3c3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahugger/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class MendeleyDataset(DatasetDownloader):
class OSFDataset(DatasetDownloader):
"""Downloader for OSF repository."""

REGEXP_ID = r"osf\.io\/(?P<record_id>.*)/"
REGEXP_ID = r"osf\.io\/(?P<record_id>[^\/]*)\/{0,1}"

# the base entry point of the REST API
API_URL = "https://api.osf.io/v2/nodes/"
Expand Down

0 comments on commit 5d3c3d3

Please sign in to comment.