Skip to content

Commit ee7f779

Browse files
committed
figshare article types: code and dataset
1 parent 5e6aa2a commit ee7f779

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

repo2docker/contentproviders/figshare.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def __init__(self):
3939
}
4040
]
4141

42-
url_regex = re.compile(r"(.*)/articles/(code/)?([^/]+)/(\d+)(/)?(\d+)?")
42+
# We may need to add other item types in future, see
43+
# https://github.com/jupyterhub/repo2docker/pull/1001#issuecomment-760107436
44+
# for a list
45+
url_regex = re.compile(r"(.*)/articles/(code/|dataset/)?([^/]+)/(\d+)(/)?(\d+)?")
4346

4447
def detect(self, doi, ref=None, extra_args=None):
4548
"""Trigger this provider for things that resolve to a Figshare article"""

0 commit comments

Comments
 (0)