We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8555988 commit cf7951dCopy full SHA for cf7951d
1 file changed
services/post_service.py
@@ -63,8 +63,8 @@ def make_postcard_object(file: str, clip_len: Optional[int] = None, img_picker:
63
if h3.get_text() == "Citation":
64
p = h3.findNext("p").get_text()
65
if p is not None:
66
- if re.match('^\D*[0-9]{4}\\.', p) is not None:
67
- data_author = re.match('^\D*[0-9]{4}\\.', p).group()
+ if re.match(r"^\D*[0-9]{4}\.", p) is not None:
+ data_author = re.match(r"^\D*[0-9]{4}\.", p).group()
68
image = soup.find("img", id=img_picker)
69
if image is None:
70
image = soup.find("img")
0 commit comments