REQUIREMENT_SPECIAL

const
Form & Validation

Password strength requirement descriptor asserting that the value contains at least one special character (any non-alphanumeric, non-space character). Used by OrigamPasswordField to display and validate the symbol rule.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

key: 'special'
Internal identifier matched by infos and locale interpolation.
message: 'a special character (!@#$%)'
Human-readable validation message label.
icon: '@'
Single-character glyph rendered in the requirements popup tile.
reg: /(?=.*[^a-zA-Z0-9\s])/
Regex matching any string containing at least one special character.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamPasswordField

Usage

Examples

Ready-to-paste code snippets using this constant.

Checking the special-character requirement

typescript