1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-11 11:44:59 -05:00

Allow numbers in ident

This commit is contained in:
Sebastian Kaspari 2010-08-27 18:57:26 +02:00
parent 4357a7c6df
commit 311889278d

View File

@ -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");
}