mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 17:02:21 -05:00
Ident: Add "-" to the list of allowed characters
This commit is contained in:
parent
a315fbb6fa
commit
e68ef9c8c2
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user