Skip to content

Commit b032ad7

Browse files
committed
Can't just use '([^/]+)/' for the new figshare url
This may break detection of non-code URLs
1 parent c33840f commit b032ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo2docker/contentproviders/figshare.py

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

42-
url_regex = re.compile(r"(.*)/articles/([^/]+)/([^/]+)/(\d+)(/)?(\d+)?")
42+
url_regex = re.compile(r"(.*)/articles/(code/)?([^/]+)/(\d+)(/)?(\d+)?")
4343

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

0 commit comments

Comments
 (0)