From 59d0881ba5ff6ea240cac9b8b145524f3062a455 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 7 Jul 2018 21:37:02 +0300 Subject: update url regex --- juick-common/src/main/java/com/juick/util/MessageUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-common/src/main/java/com') diff --git a/juick-common/src/main/java/com/juick/util/MessageUtils.java b/juick-common/src/main/java/com/juick/util/MessageUtils.java index 0da7310e..ae0c2a8b 100644 --- a/juick-common/src/main/java/com/juick/util/MessageUtils.java +++ b/juick-common/src/main/java/com/juick/util/MessageUtils.java @@ -59,7 +59,7 @@ public class MessageUtils { private final static String urlWhiteSpacePrefix = "((?<=\\s)|(?<=\\A))"; - private final static String urlRegex = "((?:ht|f)tps?://(?:www\\.)?([^\\/\\s\\n\\\"]+)/?[^\\s\\n\\\"\\>]*)"; + private final static String urlRegex = "((?:ht|f)tps?://(?:www\\.)?([^\\/\\s\\n\\\"]+)/?[^\\]\\s\\n\\\"\\>]*)"; private final static String urlWithWhitespacesRegex = urlWhiteSpacePrefix + urlRegex; -- cgit v1.2.3