mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-16 14:04:59 -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() {
|
private static final Linkify.MatchFilter WEBURL_MATCH_FILTER = new Linkify.MatchFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean acceptMatch(CharSequence cs, int start, int end) {
|
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