diff --git a/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua b/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua index a6c8edb..78ed3c8 100644 --- a/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua +++ b/docs/compile/openwrt/package/zapret/luci-app-zapret-tpws/luasrc/model/cbi/zapret-tpws.lua @@ -8,8 +8,8 @@ function opt.validate(self, value) table.insert(words, word) end for _, word in ipairs(words) do - if not word:sub(1, 2) == "--" then - return nil + if word:sub(1, 2) ~= "--" then + return nil, translate("The field value \"TPWS Options\" has incorrect format") end end return value