mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
Update zapret-tpws.lua
fixed validation function
This commit is contained in:
parent
d73212a195
commit
1b07047f63
@ -8,8 +8,8 @@ function opt.validate(self, value)
|
|||||||
table.insert(words, word)
|
table.insert(words, word)
|
||||||
end
|
end
|
||||||
for _, word in ipairs(words) do
|
for _, word in ipairs(words) do
|
||||||
if not word:sub(1, 2) == "--" then
|
if word:sub(1, 2) ~= "--" then
|
||||||
return nil
|
return nil, translate("The field value \"TPWS Options\" has incorrect format")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return value
|
return value
|
||||||
|
Loading…
Reference in New Issue
Block a user