mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-08 12:18:07 -05:00
Allow for forward slashes in idents
This commit is contained in:
parent
0381728018
commit
1a43262cb5
@ -481,7 +481,7 @@ public class AddServerActivity extends SherlockActivity implements OnClickListen
|
||||
}
|
||||
|
||||
// We currently only allow chars, numbers and some special chars for 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