Handbook
Glossary
v-one-line ( str -- str )
Form validators
Prev:
v-integer ( str -- n )
Next:
v-one-word ( str -- str )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws a validation error if the string contains line breaks.
Definition
USING:
kernel
sets
;
IN:
validators
:
v-one-line
( str -- str )
v-required
dup
"\r\n"
intersects?
[
"must be a single line"
throw
]
when
;