use a simpler email pattern

This commit is contained in:
zeapo 2017-05-28 19:00:13 +02:00
parent 3745a845cf
commit 9b646222ce

View file

@ -36,8 +36,7 @@ import java.util.regex.Pattern;
public class GitActivity extends AppCompatActivity { public class GitActivity extends AppCompatActivity {
private static final String TAG = "GitAct"; private static final String TAG = "GitAct";
// copied from http://stackoverflow.com/a/16058059/4247851 private static final String emailPattern = "^[^@]+@[^@]+$";
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 Activity activity; private Activity activity;
private Context context; private Context context;