Can't just use '([^/]+)/' for the new figshare url

This may break detection of non-code URLs
pull/1001/head
Simon Li 2021-01-08 23:46:57 +00:00
rodzic c33840fa16
commit b032ad7c4b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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