1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Ident: Add "-" to the list of allowed characters

This commit is contained in:
Sebastian Kaspari 2011-01-15 22:52:16 +01:00
parent a315fbb6fa
commit e68ef9c8c2

View File

@ -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));
}