summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorzeapo <mohamed@zenadi.com>2017-05-28 19:00:13 +0200
committerzeapo <mohamed@zenadi.com>2017-05-28 19:00:13 +0200
commit9b646222ce942d6044575623181e68ae9b9a9569 (patch)
tree17526f8b46bfaeb6f58ff56b5fce8d85b83acb7f /app/src/main
parent3745a845cf53a54f56214824d08af434cb928adc (diff)
use a simpler email pattern
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/GitActivity.java3
1 files changed, 1 insertions, 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;