do not linkify urls starting with a dot

This commit is contained in:
Daniel Gultsch 2017-04-07 14:29:55 +02:00
parent d91c314ac2
commit 56f202d4b8
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class MessageAdapter extends ArrayAdapter<Message> 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("://"));
}
};