Skip to content

Commit

Permalink
Add _ to ident chars, update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Apr 25, 2011
1 parent 322c4e0 commit ac4fa4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/src/org/yaaic/activity/AddServerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ private void validateIdentity() throws ValidationException
throw new ValidationException(getResources().getString(R.string.validation_invalid_nickname));
}

// We currently only allow chars and numbers as ident
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]\\-]+$");
// We currently only allow chars, numbers and some special chars for ident
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]\\-_]+$");
if (!identPattern.matcher(ident).matches()) {
throw new ValidationException(getResources().getString(R.string.validation_invalid_ident));
}
Expand Down

0 comments on commit ac4fa4a

Please sign in to comment.