mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 02:42:16 -05:00
Allow numbers in ident
This commit is contained in:
parent
4357a7c6df
commit
311889278d
@ -390,8 +390,8 @@ public class AddServerActivity extends Activity implements OnClickListener
|
||||
throw new ValidationException("Invalid nickname");
|
||||
}
|
||||
|
||||
// We currently only allow chars as ident
|
||||
Pattern identPattern = Pattern.compile("^[a-zA-Z]+$");
|
||||
// We currently only allow chars and numbers as ident
|
||||
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9]+$");
|
||||
if (!identPattern.matcher(ident).matches()) {
|
||||
throw new ValidationException("Invalid ident");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user