Skip to content

Commit 7f8e917

Browse files
committed
fix reponse evidence links to handle new lines
1 parent 17c016c commit 7f8e917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crowdsourcer/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def evidence_links(self):
289289
text = self.public_notes
290290
if text is None:
291291
return []
292-
links = re.findall(r"((?:https?://|www\.)[^ ]*)", text)
292+
links = re.findall(r"((?:https?://|www\.)[^ \r\n]*)", text)
293293
return links
294294

295295
@classmethod

0 commit comments

Comments
 (0)