mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
LinkPattern returned a string which contained a placeholder if the URL was considered invalid. AtomicLinkPattern wrapped this in an AtomicString, where the placeholder doesn't get removed properly. m.group(0) is always incorrect because python-markdown modifies your regex to include more than you specified (this is why part of the message got duplicated). (imported from commit 576bdf09c2b677cf4bc56484c363eb05f2110158)