diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities/Message.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Message.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Message.java b/src/main/java/de/pixart/messenger/entities/Message.java index 9d23d5461..e280d2527 100644 --- a/src/main/java/de/pixart/messenger/entities/Message.java +++ b/src/main/java/de/pixart/messenger/entities/Message.java @@ -776,9 +776,8 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable } public synchronized boolean isWebUri() { - String url = body.trim(); if (isWebUri == null) { - isWebUri = Patterns.AUTOLINK_WEB_URL.matcher(url).matches() && !url.contains(" "); + isWebUri = Patterns.WEB_URL.matcher(body).matches(); } return isWebUri; } |