[WebUI] Fix custom VType
This commit is contained in:
parent
3d4acf7d37
commit
9eb6b7c52a
@ -32,7 +32,7 @@
|
|||||||
Ext.namespace('Deluge.preferences');
|
Ext.namespace('Deluge.preferences');
|
||||||
|
|
||||||
// custom Vtype for vtype:'IPAddress'
|
// custom Vtype for vtype:'IPAddress'
|
||||||
Ext.apply(Ext.form.field.VTypes, {
|
Ext.apply(Ext.form.VTypes, {
|
||||||
IPAddress: function(v) {
|
IPAddress: function(v) {
|
||||||
return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
|
return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user