diff --git a/src/org/yaaic/activity/AddServerActivity.java b/src/org/yaaic/activity/AddServerActivity.java index 4eed17e..a9b92ac 100644 --- a/src/org/yaaic/activity/AddServerActivity.java +++ b/src/org/yaaic/activity/AddServerActivity.java @@ -385,7 +385,7 @@ public class AddServerActivity extends Activity implements OnClickListener // ::= '-' | '[' | ']' | '\' | '`' | '^' | '{' | '}' // Chars that are not in RFC 1459 but are supported too: // | and _ - Pattern nickPattern = Pattern.compile("^[a-zA-Z][a-zA-Z0-9^\\-`\\[\\]{}|_\\\\]*$"); + Pattern nickPattern = Pattern.compile("^[a-zA-Z_][a-zA-Z0-9^\\-`\\[\\]{}|_\\\\]*$"); if (!nickPattern.matcher(nickname).matches()) { throw new ValidationException("Invalid nickname"); }