aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-07 21:37:02 +0300
committerGravatar Vitaly Takmazov2018-07-07 21:37:02 +0300
commit59d0881ba5ff6ea240cac9b8b145524f3062a455 (patch)
tree400bdc260d1442fa163c52a794bb4f6d1b39e2d4 /juick-common/src/main
parentd50f4898071069c6483f32187f609b796c37d395 (diff)
update url regex
Diffstat (limited to 'juick-common/src/main')
-rw-r--r--juick-common/src/main/java/com/juick/util/MessageUtils.java2
1 files changed, 1 insertions, 1 deletions
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;