Allow numbers in ident

This commit is contained in:
Sebastian Kaspari 2010-08-27 18:57:26 +02:00
parent 4357a7c6df
commit 311889278d
1 changed files with 2 additions and 2 deletions

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