From 00361e1e3d3326ff8a2407f6c38abde83b4b5b99 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 6 Dec 2019 11:16:33 +0100 Subject: [PATCH] make + in e164 pattern not optional --- .../eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java index e0ade6491..61177d0dc 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/KnownHostsAdapter.java @@ -15,7 +15,7 @@ import eu.siacs.conversations.Config; public class KnownHostsAdapter extends ArrayAdapter { - 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 domains; private Filter domainFilter = new Filter() {