Skip to content

Commit dd6cd93

Browse files
committed
typo in doi regexp
must use `r` prefix when there are escapes
1 parent 88eaa23 commit dd6cd93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repo2docker/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def deep_get(dikt, path):
415415
# Copyright (C) 2018 Alan Rubin.
416416
# Licensed under BSD-3-Clause license
417417
doi_regexp = re.compile(
418-
"(doi:\s*|(?:https?://)?(?:dx\.)?doi\.org/)?(10\.\d+(.\d+)*/.+)$", flags=re.I
418+
r"(doi:\s*|(?:https?://)?(?:dx\.)?doi\.org/)?(10\.\d+(.\d+)*/.+)$", flags=re.I
419419
)
420420

421421

0 commit comments

Comments
 (0)