Duplicate Valid links are filtered incorrectly

Affected version


Active member
If you use the Insert Link button and paste a link that contains an apostrophe, that apostrophe gets removed. This results in invalid links.
If you just paste the URL directly into the post, the link appears correctly.

Here is an example of a link that has been broken by the Insert Link button: Click me!
Here is that same link pasted directly into the post instead, which makes it work: https://en.wikipedia.org/wiki/Chekhov's_gun