luci-app-banip: update 1.8.0-3

* more eslint fixes

Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
Dirk Brenken
2026-02-21 05:40:46 +01:00
parent 2a8230dfdd
commit 3696d66591
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ LUCI_TITLE:=LuCI support for banIP
LUCI_DEPENDS:=+luci-base +banip
PKG_VERSION:=1.8.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_LICENSE:=Apache-2.0
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
@@ -353,7 +353,7 @@ return view.extend({
o.optional = true;
o.rmempty = true;
o = s.taboption('adv_chain', form.Value, 'ban_allowflag', _('Allow Protocol/Ports'), _('Always allow a protocol \(tcp/udp\) with certain ports or port ranges in WAN-Input and WAN-Forward chain.'));
o = s.taboption('adv_chain', form.Value, 'ban_allowflag', _('Allow Protocol/Ports'), _('Always allow a protocol (tcp/udp) with certain ports or port ranges in WAN-Input and WAN-Forward chain.'));
o.placeholder = 'tcp 80 443-445';
o.rmempty = true;
@@ -603,7 +603,7 @@ return view.extend({
if (!value) {
return _('Empty field not allowed');
}
if (!value.match(/^[A-Za-z0-9\.\:]+$/)) {
if (!value.match(/^[A-Za-z0-9.:]+$/)) {
return _('Invalid characters');
}
return true;
@@ -739,8 +739,8 @@ return view.extend({
if (!value) {
return true;
}
if (!value.match(/^(http:\/\/|https:\/\/)[A-Za-z0-9\/\.\-_\?\&\+=:~#]+$/)) {
return _('Protocol/URL format not supported');
if (!value.match(/^(https?:\/\/)[A-Za-z0-9-]+\.[A-Za-z0-9.-]+(:[0-9]+)?(\/[A-Za-z0-9._\-?&+=:~#%]*)?$/)) {
return _('Invalid URL format');
}
return true;
}
@@ -775,6 +775,7 @@ return view.extend({
o.rmempty = true;
o = s.taboption('feeds', form.Value, 'ban_nftexpiry', _('Blocklist Set Expiry'), _('Expiry time for auto added blocklist Set members.'));
o.value('30ms');
o.value('10s');
o.value('1m');
o.value('5m');
@@ -782,6 +783,7 @@ return view.extend({
o.value('2h');
o.value('1d');
o.value('7d');
o.value('2w');
o.placeholder = _('-- default --');
o.optional = true;
o.rmempty = true;