kopia lustrzana https://github.com/jupyterhub/repo2docker
Can't just use '([^/]+)/' for the new figshare url
This may break detection of non-code URLspull/1001/head
rodzic
c33840fa16
commit
b032ad7c4b
|
@ -39,7 +39,7 @@ class Figshare(DoiProvider):
|
|||
}
|
||||
]
|
||||
|
||||
url_regex = re.compile(r"(.*)/articles/([^/]+)/([^/]+)/(\d+)(/)?(\d+)?")
|
||||
url_regex = re.compile(r"(.*)/articles/(code/)?([^/]+)/(\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