Modify "byte" validator to allow 255
This commit is contained in:
parent
73b924fdbc
commit
873bdc9027
|
|
@ -1756,7 +1756,7 @@ end}.
|
||||||
|
|
||||||
{validator, "byte", "Integer is not 0<=i<=255",
|
{validator, "byte", "Integer is not 0<=i<=255",
|
||||||
fun(Int) when is_integer(Int) ->
|
fun(Int) when is_integer(Int) ->
|
||||||
Int >= 0 andalso Int < 255
|
Int >= 0 andalso Int =< 255
|
||||||
end}.
|
end}.
|
||||||
|
|
||||||
{validator, "dir_writable", "Cannot create file in dir",
|
{validator, "dir_writable", "Cannot create file in dir",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue