REQUIREMENT_NUMBER
const
Form & Validation
Password strength requirement descriptor asserting that the value contains at least one digit (0-9). Used by OrigamPasswordField to display and validate the numeric character rule.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- key: 'number'
- Internal identifier matched by infos and locale interpolation.
- message: 'a number'
- Human-readable validation message label.
- icon: '1'
- Single-character glyph rendered in the requirements popup tile.
- reg: /(?=.*[0-9])/
- Regex matching any string containing at least one digit.
Ecosystem
Used by
Composables and components that consume this constant.
OrigamPasswordField
Usage
Examples
Ready-to-paste code snippets using this constant.
Checking the numeric requirement