diff --git a/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java b/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java index 77f81dfad..c1bf79db7 100644 --- a/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java +++ b/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java @@ -71,7 +71,7 @@ public class ValidatedInputView extends LinearLayout { - public static final String USERNAME_REGEX = "^[a-zA-Z0-9_]+$"; + public static final String USERNAME_REGEX = "^[a-zA-Z0-9_@^$.#!`+\\-'~]+$"; public static final String PHONE_NUMBER_REGEX = "^[0-9]{6,14}$"; public static final String CODE_REGEX = "^[0-9]{4,12}$"; public static final String EMAIL_REGEX = "[a-zA-Z0-9-.!#$%&'*+–/=?^_`{|}~]{1,64}@[a-z0-9-.]{1,255}";