diff options
author | Vitaly Takmazov | 2024-09-21 19:21:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-09-21 19:21:37 +0300 |
commit | 7d0ac17879149574a75c80be807c0819f09f7b7f (patch) | |
tree | 054865684f56a86978e5453661dce58d641193d5 /src/main/java/com/juick | |
parent | a6b5ba1ac428ef15e81ac3834b25a62d00361c32 (diff) |
URL regex: exclude guillemets
Diffstat (limited to 'src/main/java/com/juick')
-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 316adb90..3c8001d8 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -57,7 +57,7 @@ public class MessageUtils { private final static String urlWhiteSpacePrefix = "((?<=\\s)|(?<=\\A))"; - private final static String urlRegex = "((?:(?:ht|f)tps?://(?:www\\.)?([^\\s()<>/?#]+)([^\\s()<>]*)?))"; + private final static String urlRegex = "((?:(?:ht|f)tps?://(?:www\\.)?([^\\s()<>/?#]+)([^\\s()<>«»]*)?))"; private final static String urlWithWhitespacesRegex = urlWhiteSpacePrefix + urlRegex; |