Browse Source

ASCII check implemented for keyboard type ANS

master
Preyea Regmi 5 years ago
parent
commit
d75f14971e
  1. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/recipientV3/utils/EditTextConfigurationFactory.java

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/recipientV3/utils/EditTextConfigurationFactory.java

@ -22,7 +22,7 @@ public class EditTextConfigurationFactory {
return new EditTextConfiguration(InputType.TYPE_CLASS_TEXT, isLocalKeyboardAllowed, "[a-zA-Z0-9\\s]+", maxLength);
case "ANS":
return new EditTextConfiguration(InputType.TYPE_CLASS_TEXT, isLocalKeyboardAllowed, "[a-zA-Z0-9\\-.@_\\s]+", maxLength);
return new EditTextConfiguration(InputType.TYPE_CLASS_TEXT, isLocalKeyboardAllowed, "^[\\x00-\\x7F]+$", maxLength);
default:
return new EditTextConfiguration(InputType.TYPE_CLASS_TEXT, true, null, maxLength);

Loading…
Cancel
Save