You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
414 B
Lua

local tonumber = tonumber
return function()
return {
messages = {
affirmative = {
standard = "{{placeholder}} must be numeric"
},
negative = {
standard = "{{placeholder}} cannot be numeric"
}
},
apply = function(context)
context.result = (tonumber(context.input) ~= nil)
end
}
end