From 5d3c3d3f5ba4878bacbb6bbd67605f40eea518c6 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Wed, 25 Sep 2024 10:49:25 +0200 Subject: [PATCH] Enable to miss the last / --- datahugger/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datahugger/services.py b/datahugger/services.py index 022adf5..2941464 100644 --- a/datahugger/services.py +++ b/datahugger/services.py @@ -320,7 +320,7 @@ class MendeleyDataset(DatasetDownloader): class OSFDataset(DatasetDownloader): """Downloader for OSF repository.""" - REGEXP_ID = r"osf\.io\/(?P.*)/" + REGEXP_ID = r"osf\.io\/(?P[^\/]*)\/{0,1}" # the base entry point of the REST API API_URL = "https://api.osf.io/v2/nodes/"