figshare article types: code and dataset

pull/1001/head
Simon Li 2021-01-15 16:11:27 +00:00
rodzic 5e6aa2aa9b
commit ee7f7790d3
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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"""