[WebUI] Fix custom VType

This commit is contained in:
Calum Lind 2014-02-21 18:08:06 +00:00
commit 9eb6b7c52a

View file

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