bugfix/3372-link: Complement allowed characters in forum links with exlamation mark.

This commit is contained in:
Tom Zhao 2024-05-17 15:30:16 +02:00
parent e8e8bf8a68
commit 6c0cf8a42f

@ -27,7 +27,7 @@ public class SmarterLinkMultiLineLabel extends SmartLinkMultiLineLabel {
* with the addition of ";" to the accepted characters in the URL.
* This enables proper linking of escaped URLs.
*/
private static final String urlPattern = "([a-zA-Z]+://[\\w\\.\\-\\:\\/~]+)[\\w\\.:\\-/?&=%;]*";
private static final String urlPattern = "([a-zA-Z]+://[\\w\\.\\-\\:\\/~]+)[\\w\\.:\\-/?!&=%;]*";
private EscapedLinkParser() {
addLinkRenderStrategy(emailPattern, DefaultLinkParser.EMAIL_RENDER_STRATEGY);