mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-26 01:18:57 -05:00
Add _ to ident chars, update comment
This commit is contained in:
parent
322c4e0ac8
commit
ac4fa4a104
@ -413,8 +413,8 @@ public class AddServerActivity extends Activity implements OnClickListener
|
||||
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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user