4643: Automatic markdown generation fails to correctly exclude trailing .s from urls

solarmist

What version are you running?

We found this on 2.5.6.1, but it also occurs on demo.reviewboard.org (3.0.3 alpha 0 (dev)

What's the URL of the page containing the problem?

What steps will reproduce the problem?

See image attachments.

What is the expected output? What do you see instead?

The . should be excluded when the link is generated.

What operating system are you using? What browser?

Please provide any additional information below.