bugfix/3372-link: Complement allowed characters in forum links with exlamation mark.
This commit is contained in:
parent
e8e8bf8a68
commit
6c0cf8a42f
@ -27,7 +27,7 @@ public class SmarterLinkMultiLineLabel extends SmartLinkMultiLineLabel {
|
|||||||
* with the addition of ";" to the accepted characters in the URL.
|
* with the addition of ";" to the accepted characters in the URL.
|
||||||
* This enables proper linking of escaped URLs.
|
* 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() {
|
private EscapedLinkParser() {
|
||||||
addLinkRenderStrategy(emailPattern, DefaultLinkParser.EMAIL_RENDER_STRATEGY);
|
addLinkRenderStrategy(emailPattern, DefaultLinkParser.EMAIL_RENDER_STRATEGY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user