Skip to content

Exclude lonely question marks from the linkify regex

Joshua Goins requested to merge work/redstrate/fix-link-regex into master

Many URLs we see in the KDE rooms end with a question mark, without a space. The linkify regex for plain URLs incorrectly considered them as part of the link, which usually breaks them when opened in a web browser:

Before After
Screenshot_18_034659 Screenshot_18_034440

Now the regex excludes these, unless they are accompanied by another character:

Screenshot_18_034802

Merge request reports

Loading