form improvements

This commit is contained in:
Manuel Simon Hirsig
2016-08-10 04:22:24 +02:00
parent d0d48ed5d3
commit 252943eba0
3 changed files with 143 additions and 114 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ function private.blizzard_filter_parser()
local filters = {}
return function(str, first)
local filter
if tonumber(str) then
if strfind(str, '^%d+$') then
if tonumber(str) < 1 or tonumber(str) > 60 then
return nil, 'Erroneous level range modifier'
end