fix #4585 : toolkit: configid type: add missing "-" character support
JsonSchema is already ok: $CONFIGID_RE = qr/[a-z][a-z0-9_-]+/i; This is blocking creation of snapshot name with "-" in gui. (works fine command line) Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
8d32419234
commit
0c50257362
@ -110,7 +110,7 @@ Ext.apply(Ext.form.field.VTypes, {
|
||||
gettext("Must end with") + ": 'A-Z', 'a-z', '0-9'<br />",
|
||||
|
||||
ConfigId: function(v) {
|
||||
return (/^[a-z][a-z0-9_]+$/i).test(v);
|
||||
return (/^[a-z][a-z0-9_-]+$/i).test(v);
|
||||
},
|
||||
ConfigIdText: gettext("Allowed characters") + ": 'A-Z', 'a-z', '0-9', '_'<br />" +
|
||||
gettext("Minimum characters") + ": 2<br />" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user