figshare article types: code and dataset
MODIFY
repo2docker/contentproviders/figshare.py
repo2docker/contentproviders/figshare.py
@@ -39,7 +39,10 @@ class Figshare(DoiProvider):
}
]
- url_regex = re.compile(r"(.*)/articles/(code/)?([^/]+)/(\d+)(/)?(\d+)?")
+ # We may need to add other item types in future, see
+ # https://github.com/jupyterhub/repo2docker/pull/1001#issuecomment-760107436
+ # for a list
+ url_regex = re.compile(r"(.*)/articles/(code/|dataset/)?([^/]+)/(\d+)(/)?(\d+)?")
def detect(self, doi, ref=None, extra_args=None):
"""Trigger this provider for things that resolve to a Figshare article"""

figshare article types: code and dataset