Skip to content

Commit

Permalink
Allow / in ident
Browse files Browse the repository at this point in the history
To support ZNC with multiple configured networks: http://wiki.znc.in/Connecting_to_ZNC

Fixes pocmo#151
  • Loading branch information
wjzijderveld committed Jun 9, 2014
1 parent 170f632 commit b6d09d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/org/yaaic/activity/AddServerActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private void validateIdentity() throws ValidationException
// <special> ::= '-' | '[' | ']' | '\' | '`' | '^' | '{' | '}'
// 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(getResources().getString(R.string.validation_invalid_nickname));
}
Expand Down

0 comments on commit b6d09d5

Please sign in to comment.