luci-app-banip: sync with release 0.9.4-1
[project/luci.git] / applications / luci-app-banip / htdocs / luci-static / resources / view / banip / feeds.js
index 0e4e682986fc7f84950f6ea4db31502cd2905490..e6704efdcaafafc6169f8c0704848cbe021df2df 100644 (file)
@@ -236,12 +236,11 @@ return view.extend({
                        }
 
                        o = s.option(form.Value, 'flag', _('Flag'));
-                       o.datatype = 'and(minlength(2),maxlength(2))';
                        o.validate = function (section_id, value) {
                                if (!value) {
                                        return true;
                                }
-                               if (!value.match(/^gz$/)) {
+                               if (!value.match(/^(\bgz\b|\btcp\b|\budp\b|\b[0-9\-]+\b| )*$/)) {
                                        return _('Flag not supported');
                                }
                                return true;