From 56f202d4b82b1ef7d1073504b9012712914516c5 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 7 Apr 2017 14:29:55 +0200 Subject: [PATCH] do not linkify urls starting with a dot --- .../java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 99475bbb..b04494f7 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -94,7 +94,7 @@ public class MessageAdapter extends ArrayAdapter implements CopyTextVie private static final Linkify.MatchFilter WEBURL_MATCH_FILTER = new Linkify.MatchFilter() { @Override public boolean acceptMatch(CharSequence cs, int start, int end) { - return start < 1 || (cs.charAt(start-1) != '@' && !cs.subSequence(Math.max(0,start - 3),start).equals("://")); + return start < 1 || (cs.charAt(start-1) != '@' && cs.charAt(start-1) != '.' && !cs.subSequence(Math.max(0,start - 3),start).equals("://")); } };