kopia lustrzana https://github.com/jupyterhub/repo2docker
figshare article types: code and dataset
rodzic
5e6aa2aa9b
commit
ee7f7790d3
|
@ -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"""
|
||||
|
|
Ładowanie…
Reference in New Issue