typo in doi regexp

must use `r` prefix when there are escapes
pull/746/head
Min RK 2019-07-18 14:40:52 +02:00
rodzic 88eaa2305a
commit dd6cd93585
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -415,7 +415,7 @@ def deep_get(dikt, path):
# Copyright (C) 2018 Alan Rubin.
# Licensed under BSD-3-Clause license
doi_regexp = re.compile(
"(doi:\s*|(?:https?://)?(?:dx\.)?doi\.org/)?(10\.\d+(.\d+)*/.+)$", flags=re.I
r"(doi:\s*|(?:https?://)?(?:dx\.)?doi\.org/)?(10\.\d+(.\d+)*/.+)$", flags=re.I
)