mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
do not linkify urls starting with a dot
This commit is contained in:
parent
d91c314ac2
commit
56f202d4b8
@ -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("://"));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user