Sanitize user input: Difference between revisions

m
→‎{{header|Wren}}: Wren-trait -> Wren-iterate
m (→‎{{header|Wren}}: Wren-trait -> Wren-iterate)
Line 195:
{{libheader|Wren-pattern}}
{{libheader|Wren-str}}
{{libheader|Wren-traititerate}}
<br>
The following assumes that names are only valid if they contain ASCII letters, hyphens or apostrophes. However, the first or last character of a name can't be a punctuation character and a name must be between 1 and 20 characters long. A single character name is allowed to cater for an initial where the full name is not known. People are given a chance to abbreviate their names if they are too long.
Line 205:
import "/pattern" for Pattern
import "/str" for Str
import "/traititerate" for Indexed
 
class Person {
9,483

edits