diff options
author | Vitaly Takmazov | 2019-07-01 11:56:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-07-01 11:56:45 +0300 |
commit | 4f7f6b1d2712a98c31fd9b4603502573e93fc71b (patch) | |
tree | cbb220633879a6b942c673069e2fff585c8b1760 /src/main/java/com | |
parent | 4099efb66c021a74dcc34881603bd9259391be62 (diff) |
MessageUtils: Fix regexLink2 pattern
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/util/MessageUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index 0afdfedb..9b668b7c 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -69,7 +69,7 @@ public class MessageUtils { private final static String urlWithWhitespacesRegex = urlWhiteSpacePrefix + urlRegex; - private final static Pattern regexLinks2 = Pattern.compile("((?<=\\s)|(?<=\\A))([\\[\\{]|<)((?:ht|f)tps?://(?:www\\.)?([^\\/\\s\\\"\\)\\!]+)/?(?:[^\\]\\}](?<!\\>))*)([\\]\\}]|\\>)"); + private final static Pattern regexLinks2 = Pattern.compile("((?<=\\s)|(?<=\\A))([\\[\\{]|<)((?:ht|f)tps?:\\/\\/(?:www\\.)?([^\\/\\s\\\"\\)\\!>]*)\\/?(?:[^\\]\\}](?<!>))*)([\\]\\}]|>)"); private final static String replyNumberRegex = "((?<=\\s)|(?<=\\A))\\/(\\d+)((?=\\s)|(?=\\Z)|(?=\\p{Punct}))"; |