mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[WebUI] Fix custom VType
This commit is contained in:
parent
3d4acf7d37
commit
9eb6b7c52a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue