diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-03-31 13:30:16 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-03-31 13:30:16 +0200 |
commit | f2423a674a662d932d65de9712ae50aea38879dd (patch) | |
tree | 0289e7274b866e933978263ab60b86a8bb886635 /src/main/java/de/pixart/messenger/utils | |
parent | d301d25e28c1d381994d305da7f2cb14bce87333 (diff) |
fix url detection for webpreviews
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/RichPreview.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/RichPreview.java b/src/main/java/de/pixart/messenger/utils/RichPreview.java index 7824478d6..e0bff1cf2 100644 --- a/src/main/java/de/pixart/messenger/utils/RichPreview.java +++ b/src/main/java/de/pixart/messenger/utils/RichPreview.java @@ -125,7 +125,7 @@ public class RichPreview { } private String resolveURL(String url, String part) { - if (URLUtil.isValidUrl(part)) { + if (Patterns.AUTOLINK_WEB_URL.matcher(part).matches() && !part.contains(" ")) { return part; } else { URI base_uri = null; |