make + in e164 pattern not optional

This commit is contained in:
Daniel Gultsch 2019-12-06 11:16:33 +01:00
parent 4e66b25c11
commit 00361e1e3d

View file

@ -15,7 +15,7 @@ import eu.siacs.conversations.Config;
public class KnownHostsAdapter extends ArrayAdapter<String> { public class KnownHostsAdapter extends ArrayAdapter<String> {
private static Pattern E164_PATTERN = Pattern.compile("^\\+?[1-9]\\d{1,14}$"); private static Pattern E164_PATTERN = Pattern.compile("^\\+[1-9]\\d{1,14}$");
private ArrayList<String> domains; private ArrayList<String> domains;
private Filter domainFilter = new Filter() { private Filter domainFilter = new Filter() {