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
407 B
Lua

local type = type
return function()
return {
messages = {
affirmative = {
standard = "{{placeholder}} must be a string"
},
negative = {
standard = "{{placeholder}} cannot be a string"
}
},
apply = function(context)
context.result = type(context.input) == "string"
end
}
end