make + in e164 pattern not optional
This commit is contained in:
parent
4e66b25c11
commit
00361e1e3d
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue