Ident: Add "-" to the list of allowed characters

This commit is contained in:
Sebastian Kaspari 2011-01-15 22:52:16 +01:00
parent a315fbb6fa
commit e68ef9c8c2
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ public class AddServerActivity extends Activity implements OnClickListener
}
// We currently only allow chars and numbers as ident
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]]+$");
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]\\-]+$");
if (!identPattern.matcher(ident).matches()) {
throw new ValidationException(getResources().getString(R.string.validation_invalid_ident));
}