v-one-line ( str -- str )
Form validators

Prev:v-integer ( str -- n )
Next:v-one-word ( str -- str )


Vocabulary
validators

Inputs
stra string


Outputs
stra string


Word description
Throws a validation error if the string contains line breaks.

Definition


: v-one-line ( str -- str )
v-required dup "\r\n" intersects?
[ "must be a single line" throw ] when ;