Handbook
Glossary
v-one-word ( str -- str )
Form validators
Prev:
v-one-line ( str -- str )
Next:
v-captcha ( str -- str )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws a validation error if the string contains word breaks.
Definition
USING:
kernel
sequences
unicode
;
IN:
validators
:
v-one-word
( str -- str )
v-required
dup
[
alpha?
]
all?
[
"must be a single word"
throw
]
unless
;