From 9b646222ce942d6044575623181e68ae9b9a9569 Mon Sep 17 00:00:00 2001 From: zeapo Date: Sun, 28 May 2017 19:00:13 +0200 Subject: use a simpler email pattern --- app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java index 48dd9602..66e308b9 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java @@ -36,8 +36,7 @@ import java.util.regex.Pattern; public class GitActivity extends AppCompatActivity { private static final String TAG = "GitAct"; - // copied from http://stackoverflow.com/a/16058059/4247851 - private static final String emailPattern = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$"; + private static final String emailPattern = "^[^@]+@[^@]+$"; private Activity activity; private Context context; -- cgit v1.2.3